Hopper item pickup fix.

This commit is contained in:
Virizion 2016-02-01 16:18:40 -05:00
parent b6db99806a
commit 989c324a37

View File

@ -75,6 +75,7 @@ import org.bukkit.event.entity.EntityChangeBlockEvent;
import org.bukkit.event.entity.EntityCombustEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.ItemMergeEvent;
import org.bukkit.event.inventory.InventoryPickupItemEvent;
import org.bukkit.event.player.PlayerBucketEmptyEvent;
import org.bukkit.event.player.PlayerBucketFillEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
@ -1451,6 +1452,15 @@ public class SpeedBuilders extends SoloGame
event.setCancelled(true);
}
@EventHandler
public void stopInventoryPickup(InventoryPickupItemEvent event)
{
if (!IsLive())
return;
event.setCancelled(true);
}
@EventHandler
public void onPlayerBucketEmpty(PlayerBucketEmptyEvent event)
{