Skip to content

Commit

Permalink
Fix executing disable barbs command when player isn't OP (#2864)
Browse files Browse the repository at this point in the history
Stops the disable barbarian command being executed if the player isn't opped
  • Loading branch information
PoroUsedSnax authored and Raycoms committed Sep 9, 2018
1 parent 50b123a commit 7f0fb1e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private void executeShared(@NotNull final MinecraftServer server, @NotNull final
if (sender instanceof EntityPlayer && !isPlayerOpped(sender))
{
sender.sendMessage(new TextComponentString("Must be OP to use this command"));
return;
}

colony.getBarbManager().setCanHaveBarbEvents(canHaveBarbEvents);
Expand Down

0 comments on commit 7f0fb1e

Please sign in to comment.