Advertisement
TriiNoxYs

Retirer ArmorStands

Jul 7th, 2015
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. /** Retirer un ArmorStand précis **/
  2. as.remove();
  3.  
  4. /** Retirer les ArmorStands d'un monde **/
  5. for(Entity e : Bukkit.getWorld("monde")){
  6.     if(e.getType() == EntityType.ARMOR_STAND){
  7.         e.remove();
  8.     }
  9. }
  10.  
  11. /**Retirer les ArmorStands de tous les mondes **/
  12. for(World w : Bukkit.getWorlds()){
  13.     for(Entity e : w.getEntities()){
  14.         if(e.getType() == EntityType.ARMOR_STAND){
  15.             e.remove();
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement