mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-11 23:40:13 +00:00
commit
4a2b58bf97
2 changed files with 9 additions and 2 deletions
|
@ -17,7 +17,7 @@ public class Command_stop extends TFM_Command
|
|||
|
||||
for (Player p : server.getOnlinePlayers())
|
||||
{
|
||||
p.kickPlayer("Server is going offline, come back in a few minutes.");
|
||||
p.kickPlayer("Server is going offline, come back in about 20 seconds.");
|
||||
}
|
||||
|
||||
server.shutdown();
|
||||
|
|
|
@ -489,6 +489,13 @@ public class TFM_PlayerListener implements Listener
|
|||
block_command = true;
|
||||
}
|
||||
}
|
||||
else if (Pattern.compile("^/nuke").matcher(command).find())
|
||||
{
|
||||
if (!TFM_SuperadminList.isUserSuperadmin(p))
|
||||
{
|
||||
block_command = true;
|
||||
}
|
||||
}
|
||||
else if (Pattern.compile("^/rl").matcher(command).find())
|
||||
{
|
||||
if (!TFM_SuperadminList.isUserSuperadmin(p))
|
||||
|
@ -503,7 +510,7 @@ public class TFM_PlayerListener implements Listener
|
|||
block_command = true;
|
||||
}
|
||||
}
|
||||
else if (Pattern.compile("^/clearhistory").matcher(command).find())
|
||||
else if (Pattern.compile("^/clearhistory").matcher(command).find())
|
||||
{
|
||||
if (!TFM_SuperadminList.isUserSuperadmin(p))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue