Skip to content

Commit

Permalink
Merge pull request #79 from AlbertoRutigliano/player-classes
Browse files Browse the repository at this point in the history
Corrected player give class
  • Loading branch information
lucaacquafredda authored Jun 5, 2024
2 parents 6e00b30 + e7c1e84 commit 3fde476
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static void giveClasses() {
PlayerExtra playerExtra = PlayerManager.playerExtras.getOrDefault(player.getUniqueId(), null);
if (playerExtra != null) {
PlayerClass playerClass = playerExtra.getPlayerClass();
if (playerClass != null) {
playerClass.getAction().perform(player); // Give class items to players who chosen a class
}
if(playerClass == null || playerClass != PlayerClass.hardcore) {
playerInventory.addItem(new ItemStack(Material.COMPASS)); // Give a compass to all players
}
if (playerClass != null) {
playerClass.getAction().perform(player); // Give class items to players who chosen a class
}
}
player.updateInventory();
}
Expand Down

0 comments on commit 3fde476

Please sign in to comment.