From 8559d70fb258fdc2adcc8b8fc83b879e7d9c6ec6 Mon Sep 17 00:00:00 2001 From: Lunovox Date: Mon, 19 Feb 2024 08:56:57 -0300 Subject: [PATCH] --- README-old.md | 50 ++++++++++++++++++++++++++++++++++ README.md | 74 ++++++++++++++++++++++++++++----------------------- mod.conf | 4 +-- 3 files changed, 92 insertions(+), 36 deletions(-) create mode 100644 README-old.md diff --git a/README-old.md b/README-old.md new file mode 100644 index 0000000..aebf214 --- /dev/null +++ b/README-old.md @@ -0,0 +1,50 @@ +![urn_front] +# [E-URN] + +[ [Minetest Mod] ] Colect opinion of player with electronic urn. + +**Dependencies:** +* default → Minetest Game Included + +**Optional Dependencies:** +* [intllib] (Optional) → Facilitates the translation of several other mods into your native language, or other languages. +* [tradelands] (Optional) → Protection your lands and chests. +* [correio] (Optional) → Send mail to offline players. + +## **License:** + +* [GNU AGPL-3.0] + +More details: +* in English: https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License +* em Português: https://pt.wikipedia.org/wiki/GNU_Affero_General_Public_License + +**Developers:** +* Lunovox Heavenfinder: [email](mailto:lunovox@disroot.org), [xmpp](xmpp:lunovox@disroot.org?join), [social web](http:qoto.org/@lunovox), [audio conference](mumble:mumble.disroot.org), [more contacts](https:libreplanet.org/wiki/User:Lunovox) + +## **Internationalization of this Mod:** + +This mod currently are configured to language: + +* [English] (DEFAULT) +* [Portuguese] + +To add a new language to this mod just follow the steps below: + +1. Enable the complementary mod **'intllib'.** +2. Set your language in **'minetest.conf'** by adding the [````language = ````] property. +3. Example for French Language: ````language = fr```` +4. Make a copy of the file [ **template.pot** ] in the [ **locale** ] folder that is inside the mod for [````locale/.po````]. +5. Example for French language: ````locale/fr.po```` +6. Open the file [````locale/.po````] in POEdit (Also works in a simple text editor). +7. Translate all and send your translated file to developers of this mod. + +[correio]:https://gitlab.com/Lunovox/correio +[E-URN]:https://gitlab.com/lunovox/e-urn/ +[English]:https://gitlab.com/lunovox/e-urn/-/raw/master/locale/template.pot +[GNU AGPL-3.0]:https://gitlab.com/lunovox/e-urn/-/raw/master/LICENSE +[intllib]:https://github.com/minetest-mods/intllib +[Minetest Mod]:https://minetest.net +[Portuguese]:https://gitlab.com/lunovox/e-urn/-/raw/master/locale/pt.po +[tradelands]:https://github.com/Lunovox/tradelands +[urn_front]:textures/text_eurn_front.png diff --git a/README.md b/README.md index aebf214..63c5e62 100644 --- a/README.md +++ b/README.md @@ -1,50 +1,56 @@ ![urn_front] # [E-URN] -[ [Minetest Mod] ] Colect opinion of player with electronic urn. +[![minetest_icon]][minetest_link] [![baixa_icon]][baixa_link] [![projeto_icon]][projeto_link] -**Dependencies:** -* default → Minetest Game Included - -**Optional Dependencies:** -* [intllib] (Optional) → Facilitates the translation of several other mods into your native language, or other languages. -* [tradelands] (Optional) → Protection your lands and chests. -* [correio] (Optional) → Send mail to offline players. +Colect opinion of player with electronic urn. ## **License:** -* [GNU AGPL-3.0] +* [![license_icon]][license_link] -More details: -* in English: https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License -* em Português: https://pt.wikipedia.org/wiki/GNU_Affero_General_Public_License + More details: + +[![wiki_en_icon]][wiki_en_link] [![wiki_pt_icon]][wiki_pt_link] -**Developers:** -* Lunovox Heavenfinder: [email](mailto:lunovox@disroot.org), [xmpp](xmpp:lunovox@disroot.org?join), [social web](http:qoto.org/@lunovox), [audio conference](mumble:mumble.disroot.org), [more contacts](https:libreplanet.org/wiki/User:Lunovox) +## **Depends:** -## **Internationalization of this Mod:** +* -= NENHUMA =- -This mod currently are configured to language: +## **Commands:** -* [English] (DEFAULT) -* [Portuguese] +* ````/president []```` : Show or Select the presidente of the server. +* ````/candidateme []```` : Register your campaign to run for server president. +* ````/candidates```` : Show the name of all candidates for president. +* ````/campaign []```` : Show the Campaign of candidate for president. -To add a new language to this mod just follow the steps below: +## **API:** -1. Enable the complementary mod **'intllib'.** -2. Set your language in **'minetest.conf'** by adding the [````language = ````] property. -3. Example for French Language: ````language = fr```` -4. Make a copy of the file [ **template.pot** ] in the [ **locale** ] folder that is inside the mod for [````locale/.po````]. -5. Example for French language: ````locale/fr.po```` -6. Open the file [````locale/.po````] in POEdit (Also works in a simple text editor). -7. Translate all and send your translated file to developers of this mod. +* ```` 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````. + + +## **Developers:** + +* Lunovox Heavenfinder: [email](mailto:lunovox@disroot.org), [xmpp](xmpp:lunovox@disroot.org?join), [social web](http://qoto.org/@lunovox), [audio conference](https://meet.jit.si/MinetestBrasil), [more contacts](https:libreplanet.org/wiki/User:Lunovox) -[correio]:https://gitlab.com/Lunovox/correio -[E-URN]:https://gitlab.com/lunovox/e-urn/ -[English]:https://gitlab.com/lunovox/e-urn/-/raw/master/locale/template.pot -[GNU AGPL-3.0]:https://gitlab.com/lunovox/e-urn/-/raw/master/LICENSE -[intllib]:https://github.com/minetest-mods/intllib -[Minetest Mod]:https://minetest.net -[Portuguese]:https://gitlab.com/lunovox/e-urn/-/raw/master/locale/pt.po -[tradelands]:https://github.com/Lunovox/tradelands [urn_front]:textures/text_eurn_front.png +[E-URN]:https://gitlab.com/lunovox/e-urn/ +[baixa_icon]:https://img.shields.io/static/v1?label=Download&message=Mod&color=blue +[baixa_link]:https://gitlab.com/lunovox/e-urn/-/archive/master/e-urn-master.zip?inline=false +[bower_icon]:https://img.shields.io/badge/Bower-Projeto-green.svg +[bower_link]:https://gitlab.com/lunovox/e-urn/-/raw/master/textures/bower.json +[favicon]:https://gitlab.com/lunovox/e-urn/-/raw/master/favicon.png +[GNU AGPL-3.0]:https://gitlab.com/lunovox/e-urn/-/raw/master/LICENSE +[license_icon]:https://img.shields.io/static/v1?label=GNU%20AGPL%20v3.0&message=Download&color=yellow +[license_link]:https://gitlab.com/lunovox/e-urn/-/raw/master/LICENSE +[minetest_icon]:https://img.shields.io/static/v1?label=Minetest&message=Game&color=brightgreen +[minetest_link]:https://minetest.net +[projeto_icon]:https://img.shields.io/static/v1?label=Projeto&message=GIT&color=red +[projeto_link]:https://gitlab.com/lunovox/e-urn +[e-urn_title]:https://gitlab.com/lunovox/e-urn/-/raw/master/textures/title.png +[wiki_en_icon]:https://img.shields.io/static/v1?label=GNU%20AGPL%20v3.0&message=EN&color=blue +[wiki_en_link]:https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License +[wiki_pt_icon]:https://img.shields.io/static/v1?label=GNU%20AGPL%20v3.0&message=PT&color=blue +[wiki_pt_link]:https://pt.wikipedia.org/wiki/GNU_Affero_General_Public_License \ No newline at end of file diff --git a/mod.conf b/mod.conf index 284432a..81f58b0 100644 --- a/mod.conf +++ b/mod.conf @@ -5,6 +5,6 @@ description = Colect opinion of player with electronic urn. release = 0.1.0 author = Lunovox Heavenfinder title = Electronic Urn -depends = default -optional_depends = intllib,tradelands,correio +depends = +optional_depends =