mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fix players not being able to pick up items.
This commit is contained in:
parent
86eaa3b091
commit
f2b1758439
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user