diff --git a/README.md b/README.md index 8a501fd..3473d42 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,11 @@ Colect opinion of player with electronic urn. | :--: | :--: | :-- | | default | Mandatory | Minetest Game Included. | + ## **Commands:** +These commands are not mandatory for you to use this mod. To do the same, you can use the graphical mode of the electronic voting machine and the voter registration card. + | Command | Parameter | Descryption | | :-- | :--: | :-- | | ````/president```` | ````[]```` | Show or Select the presidente of the server. Need the ````electoraljudge```` privilege. | @@ -37,11 +40,28 @@ Colect opinion of player with electronic urn. | ````/votes```` | | Show the name of all candidates for president with the amount of votes. Need the ````electoraljudge```` privilege. | | ````/election```` | | Apply presidential selection vote counting! Need the ````electoraljudge```` privilege. | + ## **API:** -* ```` modEUrn.getPresidentCandidates()```` : Return a array with name of all presidente candidates of the server. Return empty array if not exist. -* ```` modEUrn.getPresidentName()```` : Return a string with the presidente name of the server. Return nil if not exist. -* ````modEUrn.doSave()```` : Save database em file ````e-urm.db````. +Extras are functions of this mod that you can use in another mod you create. For example: "create a mod that gives a special power or privilege that only the elected president can enjoy" + +| Function | Descryption | +| :--: | :-- | +| ```` modEUrn.getPresidentCandidates()```` | Return a array with name of all presidente candidates of the server. Return empty array if not exist. +| ```` modEUrn.getPresidentName()```` | Return a string with the presidente name of the server. Return nil if not exist. +| ````modEUrn.doSave()```` | Save database em file ````e-urm.db````. + + +## **CONFIGURATION:** + +You don't need to worry about the settings below to make this mod work. But, if you want to configure, you can change the settings through the graphical menu, or you can change them directly by editing the 'minetest.conf' file. + +| Function | Descryption | +| :--: | :-- | +| ````eurn.debug = ```` | Allows you to print the debug information of this mod on the screen. Default: false | +| ````eurn.save_compressed = ```` | Whether the database will be BASE64 compressed. If enabled will save database bank without compression in file '.db'. Default: true | +| ````eurn.voter.min_played_hours = ```` | Minimum game time in hours to become a voter. Default: 90 | Min: 0 | Max: 8760 | + [urn_front]:textures/text_eurn_front.png diff --git a/settingtypes.txt b/settingtypes.txt index c91ea3e..279f627 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -5,8 +5,7 @@ eurn.debug (Show E-Urn Debug) bool false # E-URN: # Whether the database will be BASE64 compressed. -# If enabled will save database bank in file '.db64', -# else in file '.tbl' without compression. +# If enabled will save database bank without compression in file '.db'. # Default: true eurn.save_compressed (Database Compressed) bool true