Skip to content

Commit

Permalink
feat(utils): player isOp
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Aug 15, 2022
1 parent 6fc18c5 commit bc3a544
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -78,4 +78,8 @@ static void setPlayerReach(Player player, int reach) {
player.getAttribute(ForgeMod.REACH_DISTANCE.get()).setBaseValue(reach);
}

static boolean isOp(ServerPlayer player) {
return player.getServer().getPlayerList().isOp(player.getGameProfile());
}

}

0 comments on commit bc3a544

Please sign in to comment.