parent
0a059c2ecc
commit
46ecf9a42b
2
init.lua
2
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.")
|
minetest.log("error", "[PvP Plus] PvP Plus cannot work if PvP is disabled. Please enable PvP.")
|
||||||
else
|
else
|
||||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/pvp.lua")
|
dofile(minetest.get_modpath(minetest.get_current_modname()).."/pvp.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
|
local tournament = pvpplus.tournament -- Shortcut reference
|
||||||
|
|
||||||
minetest.register_privilege("tournament_mod", "PvP Tournament Moderator")
|
minetest.register_privilege("tournament_mod", "PvP Tournament Moderator")
|
||||||
|
|
|
@ -3,9 +3,9 @@ tournament.hud = {}
|
||||||
tournament.hud_list = {}
|
tournament.hud_list = {}
|
||||||
|
|
||||||
-- These values cannot be exact for all clients. Default values should be fine for most of them.
|
-- 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 margin = tonumber(minetest.settings:get("pvpplus.tournament_hud_margin")) or 10 -- pixels
|
||||||
local font_width = tonumber(minetest.setting_get("pvpplus.font_width")) or 5 -- pixels
|
local font_width = tonumber(minetest.settings:get("pvpplus.font_width")) or 5 -- pixels
|
||||||
local separation = tonumber(minetest.setting_get("pvpplus.tournament_hud_separation")) or 18 -- pixels
|
local separation = tonumber(minetest.settings:get("pvpplus.tournament_hud_separation")) or 18 -- pixels
|
||||||
|
|
||||||
function pvpplus.tournament_hud_update_list()
|
function pvpplus.tournament_hud_update_list()
|
||||||
tournament.hud_list = {}
|
tournament.hud_list = {}
|
||||||
|
|
Loading…
Reference in New Issue