Fix commands again
This commit is contained in:
parent
4810eb0ac4
commit
965018dba3
@ -31,7 +31,7 @@ public class CommandRestrict implements Listener {
|
|||||||
if (disabledCommand.startsWith(playercommand))
|
if (disabledCommand.startsWith(playercommand))
|
||||||
{
|
{
|
||||||
String therest = disabledCommand.replace(playercommand, "");
|
String therest = disabledCommand.replace(playercommand, "");
|
||||||
if (therest.startsWith(" "))
|
if (therest.isEmpty() || therest.startsWith(" "))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
player.sendMessage(plugin.msgCommandRestricted);
|
player.sendMessage(plugin.msgCommandRestricted);
|
||||||
|
Loading…
Reference in New Issue
Block a user