Anti-item-burn plugin

Discussion in 'Spigot Plugin Help' started by Einwegrasierer, May 28, 2016.

  1. Hi, i need a Plugin on my Skyblock server that make that items dont burn in lava, better for the Cooble generator.
    did anybody know one?
     
  2. Sry i posted this in Bungeecord. but i cant remove that ;o
     
  3. Try this
    Code (Text):
                public void onEntityDamage(EntityDamageEvent event) {
                    Entity e = event.getEntity();
                    if (e instanceof Item) {
                         if (event.getDamageCause() == DamageCause.FIRE || event.getDamageCause() == DamageCause.LAVA) {
                              event.setCancelled(true);
                         }
                    }
                 }
     
    • Agree Agree x 1