Fix commands restrictions for real
This commit is contained in:
parent
965018dba3
commit
46fdc23ff5
@ -30,7 +30,7 @@ public class CommandRestrict implements Listener {
|
||||
{
|
||||
if (disabledCommand.startsWith(playercommand))
|
||||
{
|
||||
String therest = disabledCommand.replace(playercommand, "");
|
||||
String therest = playercommand.replace(disabledCommand, "");
|
||||
if (therest.isEmpty() || therest.startsWith(" "))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user