Answers for "How to remove an entity spigot"

1

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();

});
Posted by: Guest on December-08-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language