closeserver.lua

main 14 lines · 314 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onSay(player, words, param)
2 if player:getGroup():getId() < 3 then
3 return false
4 end
5
6 if param == "shutdown" then
7 Game.setGameState(GAME_STATE_SHUTDOWN)
8 else
9 Game.setGameState(GAME_STATE_CLOSED)
10 player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Server is now closed.")
11 end
12 return false
13end
14
Top