diff --git a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java index 418eb13..c44cdb8 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java @@ -286,15 +286,11 @@ public class BauSystem extends JavaPlugin implements Listener { ItemMeta meta = stack.getItemMeta(); for (Attribute a : Attribute.values()) meta.removeAttributeModifier(a); - meta.setDisplayName("We know, that you tried to cheat..."); - System.out.println("Spieler " + p.getName() + " (UUID: " + p.getUniqueId().toString() + " ) hat versucht ein Item mit AttributeModifiers zu bekommen."); stack.setItemMeta(meta); } Material material = stack.getType(); - if (material == Material.POTION || material == Material.SPLASH_POTION || material == Material.LINGERING_POTION) { - p.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 100000, 1, false, false)); + if (material == Material.POTION || material == Material.SPLASH_POTION || material == Material.LINGERING_POTION) stack.setType(Material.MILK_BUCKET); - } e.setCurrentItem(stack); } }