Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spigot remove every entity


//Get all entities
Bukkit.getWorld("world").getEntities().forEach(entity -> {

            //Check if entity isnt a player
            if(!(entity instanceof Player))
                entity.remove();

});
 
PREVIOUS NEXT
Tagged: #spigot #remove #entity
ADD COMMENT
Topic
Name
2+9 =