mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (UserManager.getPlayer(player).getAbilityMode(AbilityType.BERSERK)) {
|
||||||
|
player.setCanPickupItems(true);
|
||||||
|
}
|
||||||
|
|
||||||
/* GARBAGE COLLECTION */
|
/* GARBAGE COLLECTION */
|
||||||
BleedTimerTask.bleedOut(player); // Bleed it out
|
BleedTimerTask.bleedOut(player); // Bleed it out
|
||||||
}
|
}
|
||||||
@ -232,6 +236,10 @@ public class PlayerListener implements Listener {
|
|||||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
|
if (UserManager.getPlayer(player).getAbilityMode(AbilityType.BERSERK)) {
|
||||||
|
player.setCanPickupItems(false);
|
||||||
|
}
|
||||||
|
|
||||||
if (Config.getInstance().getMOTDEnabled() && Permissions.motd(player)) {
|
if (Config.getInstance().getMOTDEnabled() && Permissions.motd(player)) {
|
||||||
Motd.displayAll(player);
|
Motd.displayAll(player);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user