Actually return in CommandModule when a player does not have permission
This commit is contained in:
parent
2162f1a883
commit
d53829027e
@ -98,6 +98,7 @@ public class CommandModule extends Module
|
|||||||
if (!baseCommand.canRun(player))
|
if (!baseCommand.canRun(player))
|
||||||
{
|
{
|
||||||
player.sendMessage(F.main(getPlugin().getName(), "You don't have permission to do that."));
|
player.sendMessage(F.main(getPlugin().getName(), "You don't have permission to do that."));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!baseCommand.execute(player, commandLabel, args))
|
if (!baseCommand.execute(player, commandLabel, args))
|
||||||
|
Loading…
Reference in New Issue
Block a user