Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. package de.Tommunity.Villager;
  2.  
  3. import org.bukkit.Location;
  4. import org.bukkit.entity.EntityType;
  5. import org.bukkit.entity.Villager;
  6. import org.bukkit.entity.Witch;
  7. import org.bukkit.potion.PotionEffect;
  8. import org.bukkit.potion.PotionEffectType;
  9.  
  10. public class Magier {
  11. public static final String WITCHNAME = "§e§lMagier";
  12.  
  13. public Magier(Location location) {
  14. Witch magier = (Witch) location.getWorld().spawnEntity(location, EntityType.WITCH);
  15. magier.setCustomName(Magier.WITCHNAME);
  16. magier.setCustomNameVisible(true);
  17. magier.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, 500, false));
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement