mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-11 19:39:11 +00:00
Bye bye /butcher!
This commit is contained in:
parent
61db5de20d
commit
3f29f788d5
1 changed files with 15 additions and 0 deletions
|
@ -530,6 +530,21 @@ public class TFM_PlayerListener implements Listener
|
|||
block_command = true;
|
||||
}
|
||||
}
|
||||
else if (Pattern.compile("^/butcher").matcher(command).find())
|
||||
{
|
||||
if (!TFM_SuperadminList.isUserSuperadmin(p))
|
||||
{
|
||||
block_command = true;
|
||||
}
|
||||
}
|
||||
//Just incase, a // version
|
||||
else if (Pattern.compile("^//butcher").matcher(command).find())
|
||||
{
|
||||
if (!TFM_SuperadminList.isUserSuperadmin(p))
|
||||
{
|
||||
block_command = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (block_command)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue