angefragte Veränderungen
Dieser Commit ist enthalten in:
Ursprung
2ebaeca46b
Commit
c90695e69c
@ -286,15 +286,11 @@ public class BauSystem extends JavaPlugin implements Listener {
|
|||||||
ItemMeta meta = stack.getItemMeta();
|
ItemMeta meta = stack.getItemMeta();
|
||||||
for (Attribute a : Attribute.values())
|
for (Attribute a : Attribute.values())
|
||||||
meta.removeAttributeModifier(a);
|
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);
|
stack.setItemMeta(meta);
|
||||||
}
|
}
|
||||||
Material material = stack.getType();
|
Material material = stack.getType();
|
||||||
if (material == Material.POTION || material == Material.SPLASH_POTION || material == Material.LINGERING_POTION) {
|
if (material == Material.POTION || material == Material.SPLASH_POTION || material == Material.LINGERING_POTION)
|
||||||
p.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 100000, 1, false, false));
|
|
||||||
stack.setType(Material.MILK_BUCKET);
|
stack.setType(Material.MILK_BUCKET);
|
||||||
}
|
|
||||||
e.setCurrentItem(stack);
|
e.setCurrentItem(stack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren