Skip to content

Commit

Permalink
make unfactioned players beholden to guest permissions instead of hav…
Browse files Browse the repository at this point in the history
…ing no permissions
  • Loading branch information
Paul-31415 committed Oct 13, 2023
1 parent 90f3d32 commit 945223e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/io/icker/factions/core/InteractionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,12 @@ private static ActionResult checkPermissions(PlayerEntity player, BlockPos posit
return ActionResult.PASS;
}

if (!user.isInFaction()) {
return ActionResult.FAIL;
if (!user.isInFaction()){
if (claimFaction.guest_permissions.contains(permission)) {
return ActionResult.SUCCESS;
}else{
return ActionResult.FAIL;
}
}

Faction userFaction = user.getFaction();
Expand Down

0 comments on commit 945223e

Please sign in to comment.