mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-07-04 21:11:39 +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;
|
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)
|
if (block_command)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue