1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

Fix from_hell and timeonline

- Forced cast of x,y and z into numbers
This commit is contained in:
LeMagnesium 2015-06-22 21:01:26 +02:00
parent 632b3b2391
commit fc43196a9a
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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