mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Added kill server cmd
This commit is contained in:
parent
317c28274d
commit
7c90a2bee0
|
|
@ -178,7 +178,20 @@ function chatCmd(%client, %message) //%client is sender
|
|||
spookySky(1);// only one sky for right now
|
||||
$CurrentSky = "spookySky";
|
||||
}
|
||||
|
||||
case "/forcequit" or "/kill" or "/quit":
|
||||
if(%client.isSuperAdmin){
|
||||
if(!$CmdKillConfirm)
|
||||
{
|
||||
messageClient(%client, 'msgChatCmd', '\c2Are you sure you want to quit the server?');
|
||||
adminLog(%client, " has used quit server command. Confirm?" SPC %client.nameBase @ "(" @ %client.guid @ ").");
|
||||
$CmdKillConfirm = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
adminLog(%client, " has quit the server. Dead." SPC %client.nameBase @ "(" @ %client.guid @ ").");
|
||||
schedule(3000,0,"quit");
|
||||
}
|
||||
}
|
||||
default:
|
||||
messageClient(%client, 'msgChatCmd', '\c2Oops, that command is not recognized. ');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue