diff --git a/init.lua b/init.lua index b984ff2..70a932b 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ -if not minetest.setting_getbool("enable_pvp") then +if not minetest.settings:get_bool("enable_pvp") then minetest.log("error", "[PvP Plus] PvP Plus cannot work if PvP is disabled. Please enable PvP.") else dofile(minetest.get_modpath(minetest.get_current_modname()).."/pvp.lua") diff --git a/tournament_commands.lua b/tournament_commands.lua index d8c6ca9..1764b43 100644 --- a/tournament_commands.lua +++ b/tournament_commands.lua @@ -1,4 +1,4 @@ -local tournament_starting_time = tonumber(minetest.setting_get("pvpplus.tournament_starting_time")) or 60 -- seconds +local tournament_starting_time = tonumber(minetest.settings:get("pvpplus.tournament_starting_time")) or 60 -- seconds local tournament = pvpplus.tournament -- Shortcut reference minetest.register_privilege("tournament_mod", "PvP Tournament Moderator") diff --git a/tournament_hud.lua b/tournament_hud.lua index 36dc7a7..9ab40c5 100644 --- a/tournament_hud.lua +++ b/tournament_hud.lua @@ -3,9 +3,9 @@ tournament.hud = {} tournament.hud_list = {} -- These values cannot be exact for all clients. Default values should be fine for most of them. -local margin = tonumber(minetest.setting_get("pvpplus.tournament_hud_margin")) or 10 -- pixels -local font_width = tonumber(minetest.setting_get("pvpplus.font_width")) or 5 -- pixels -local separation = tonumber(minetest.setting_get("pvpplus.tournament_hud_separation")) or 18 -- pixels +local margin = tonumber(minetest.settings:get("pvpplus.tournament_hud_margin")) or 10 -- pixels +local font_width = tonumber(minetest.settings:get("pvpplus.font_width")) or 5 -- pixels +local separation = tonumber(minetest.settings:get("pvpplus.tournament_hud_separation")) or 18 -- pixels function pvpplus.tournament_hud_update_list() tournament.hud_list = {}