Skip to content

Commit

Permalink
Skip player under lvl 10
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasDPX committed Jul 5, 2024
1 parent b68379d commit 5d75403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/fr/communaywen/core/listeners/OnPlayers.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public void onPlayerJoin(PlayerJoinEvent event) throws IOException { // Donne un
User lpPlayer = this.luckPerms.getPlayerAdapter(Player.class).getUser(player);

int level = user.getInt("level");

if (level < 10){ break; }

int firstDigit = level % 10;

String permissionNode = "ayw.levels." + (firstDigit * 10);
Expand Down

0 comments on commit 5d75403

Please sign in to comment.