Actually return in CommandModule when a player does not have permission

This commit is contained in:
Spencer 2018-03-07 13:53:22 -05:00 committed by Alexander Meech
parent 2162f1a883
commit d53829027e

View File

@ -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))