Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public void spawnpredador() {
  2. Bukkit.getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
  3. public void run() {
  4. for (World w : Bukkit.getWorlds()) {
  5. for (Entity e : w.getEntities()) {
  6. if (e.getType() == EntityType.WITHER) {
  7. if (e.getCustomName().equalsIgnoreCase(getConfig().getString("nome").replace("&", "§"))) e.remove();
  8. }
  9. }
  10. predador();
  11. return;
  12. }
  13. }
  14. },10*20l);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement