summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/game/chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index 136e45a9a..e349eec7e 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -828,7 +828,7 @@ core.register_chatcommand("shutdown", {
message = message or ""
if delay ~= "" then
- delay = tonumber(param) or 0
+ delay = tonumber(delay) or 0
else
delay = 0
core.log("action", name .. " shuts down server")