2013-07-27 16:24:03 +01:00
|
|
|
function HandleSaveAllCommand( Split, Player )
|
2013-08-11 16:00:53 +01:00
|
|
|
|
|
|
|
|
cRoot:Get():SaveAllChunks()
|
2013-08-02 07:48:47 +01:00
|
|
|
local Server = cRoot:Get():GetServer()
|
2013-07-31 17:10:59 +01:00
|
|
|
Server:SendMessage(cChatColor.Rose .. "[WARNING] " .. cChatColor.White .. "Saving all worlds!")
|
2013-08-11 16:00:53 +01:00
|
|
|
return true
|
|
|
|
|
|
2013-07-27 16:24:03 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function HandleStopCommand( Split, Player )
|
2013-08-11 16:00:53 +01:00
|
|
|
|
2013-08-02 07:48:47 +01:00
|
|
|
Server = cRoot:Get():GetServer()
|
|
|
|
|
local Server = cRoot:Get():GetServer()
|
2013-07-31 17:10:59 +01:00
|
|
|
Server:SendMessage(cChatColor.Red .. "[WARNING] " .. cChatColor.White .. "Server is terminating!" )
|
2013-07-27 16:24:03 +01:00
|
|
|
cRoot:Get():QueueExecuteConsoleCommand("stop")
|
|
|
|
|
return true
|
2013-08-11 16:00:53 +01:00
|
|
|
|
2013-07-27 16:24:03 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function HandleReloadCommand( Split, Player )
|
2013-08-11 16:00:53 +01:00
|
|
|
|
2013-08-02 07:48:47 +01:00
|
|
|
Server = cRoot:Get():GetServer()
|
|
|
|
|
local Server = cRoot:Get():GetServer()
|
2013-07-31 17:10:59 +01:00
|
|
|
Server:SendMessage(cChatColor.Rose .. "[WARNING] " .. cChatColor.White .. "Reloading all plugins!" )
|
2013-07-27 16:24:03 +01:00
|
|
|
cRoot:Get():GetPluginManager():ReloadPlugins()
|
|
|
|
|
return true
|
2013-08-11 16:00:53 +01:00
|
|
|
|
|
|
|
|
end
|