mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-15 15:04:53 +02:00
Full Distribution
This commit is contained in:
13
data/talkactions/scripts/openserver.lua
Normal file
13
data/talkactions/scripts/openserver.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
function onSay(player, words, param)
|
||||
if not player:getGroup():getAccess() then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getAccountType() < ACCOUNT_TYPE_GOD then
|
||||
return false
|
||||
end
|
||||
|
||||
Game.setGameState(GAME_STATE_NORMAL)
|
||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Server is now open.")
|
||||
return false
|
||||
end
|
Reference in New Issue
Block a user