mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Fix from_hell and timeonline
- Forced cast of x,y and z into numbers
This commit is contained in:
parent
632b3b2391
commit
fc43196a9a
@ -145,7 +145,7 @@ minetest.register_chatcommand("from_hell", {
|
||||
local pos_togo = {x = 0, y = 35, z = -7}
|
||||
if minetest.setting_getbool("static_spawnpoint") ~= nil then
|
||||
local stsp_conf = minetest.setting_get("static_spawnpoint")
|
||||
pos_togo = {x = stsp_conf:split(",")[1],y = stsp_conf:split(",")[2],z = stsp_conf:split(",")[3]}
|
||||
pos_togo = {x = stsp_conf:split(",")[1]+0,y = stsp_conf:split(",")[2]+0,z = stsp_conf:split(",")[3]+0}
|
||||
end
|
||||
player:moveto(pos_togo)
|
||||
return true
|
||||
|
@ -111,7 +111,8 @@ minetest.register_chatcommand("timeonline",{
|
||||
end
|
||||
end
|
||||
})
|
||||
minetest.register_chatcommand("timeonline", core.chatcommands["played"])
|
||||
|
||||
--minetest.register_chatcommand("timeonline", core.chatcommands["played"])
|
||||
|
||||
function breakdowntime(t)
|
||||
local countdown = t
|
||||
|
Loading…
Reference in New Issue
Block a user