From f2b17584391da5b4eb92a0bba382ba6cdf196844 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 28 Mar 2013 07:52:12 -0400 Subject: [PATCH] Fix players not being able to pick up items. --- .../java/com/gmail/nossr50/listeners/PlayerListener.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); }