Skip to content

Commit

Permalink
Stop command execution after message "Only players can do this command!"
Browse files Browse the repository at this point in the history
  • Loading branch information
pavog committed Oct 6, 2019
1 parent bcd16de commit fe49c54
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ protected void executeCommand(Command command, CommandSender sender, String[] ar
if (sender instanceof ConsoleCommandSender) {
if (cmd.playerOnly()) {
commandHandler.getServerCaller().getPlayerCaller().sendMessage(sender, "{{DARK_RED}}Only players can do this command!", getName());
return;
}
}
if (commandHandler.getServerCaller().getPlayerCaller().checkPermission(sender.getUuid(), cmd.getPermissionNode())) {
Expand Down

0 comments on commit fe49c54

Please sign in to comment.