diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index c6e9f5715..a3de299e3 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -219,6 +219,10 @@ public class PlayerListener implements Listener { return; } + if (UserManager.getPlayer(player).getAbilityMode(AbilityType.BERSERK)) { + player.setCanPickupItems(true); + } + /* GARBAGE COLLECTION */ BleedTimerTask.bleedOut(player); // Bleed it out } @@ -232,6 +236,10 @@ public class PlayerListener implements Listener { public void onPlayerJoin(PlayerJoinEvent event) { Player player = event.getPlayer(); + if (UserManager.getPlayer(player).getAbilityMode(AbilityType.BERSERK)) { + player.setCanPickupItems(false); + } + if (Config.getInstance().getMOTDEnabled() && Permissions.motd(player)) { Motd.displayAll(player); }