Skip to content

Commit cf98f5b

Browse files
dopiknerzhul
authored andcommittedFeb 19, 2018
/shutdown can't do countdown when using reconnect and/or shutdown message (#7055)
Delay was converted from the param string and not the delay value, thus never using the actual given delay value when used in combination with other string values in the param, in this case reconnect and the shutdown messsage.
1 parent 5ef9056 commit cf98f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎builtin/game/chatcommands.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ core.register_chatcommand("shutdown", {
828828
message = message or ""
829829

830830
if delay ~= "" then
831-
delay = tonumber(param) or 0
831+
delay = tonumber(delay) or 0
832832
else
833833
delay = 0
834834
core.log("action", name .. " shuts down server")

0 commit comments

Comments
 (0)
Please sign in to comment.