mirror of
https://gitlab.com/lunovox/e-urn.git
synced 2025-03-15 07:21:22 +00:00
[refact] reorganizando os comandos.
This commit is contained in:
parent
379f726442
commit
e8d5b17425
1 changed files with 4 additions and 3 deletions
7
api.lua
7
api.lua
|
@ -1,3 +1,7 @@
|
|||
modEUrn.MinPlayedHours = tonumber(minetest.settings:get("eurn.voter.min_played_hours") or 90) -- value in hours
|
||||
modEUrn.save_compressed = minetest.settings:get_bool("eurn.save_compressed") ~= false
|
||||
|
||||
|
||||
minetest.register_privilege("electoraljudge", {
|
||||
description=modEUrn.translate("Allows you to configure the Electronic Urn."),
|
||||
give_to_singleplayer=false,
|
||||
|
@ -78,9 +82,6 @@ modEUrn.handler = {
|
|||
--month_counted = 0
|
||||
}
|
||||
|
||||
modEUrn.MinPlayedHours = tonumber(minetest.settings:get("eurn.voter.min_played_hours") or 90) -- value in hours
|
||||
modEUrn.save_compressed = minetest.settings:get_bool("eurn.save_compressed") ~= false
|
||||
|
||||
modEUrn.doSave = function()
|
||||
local file = io.open(modEUrn.urlTabela, "w")
|
||||
if file then
|
||||
|
|
Loading…
Add table
Reference in a new issue