📅  最后修改于: 2022-03-11 14:52:08.632000             🧑  作者: Mango
//Get all entities
Bukkit.getWorld("world").getEntities().forEach(entity -> {
//Check if entity isnt a player
if(!(entity instanceof Player))
entity.remove();
});