Answers for "cant die to /kill spigot"

1

spigot kill entity

@EventHandler
	public void onEntitySpawn(EntitySpawnEvent event) {
		if (event.getEntityType() == EntityType.CREEPER) {
			if (event.getEntity() instanceof Damageable) {
				
				Damageable creeper = (Damageable) event.getEntity();
				creeper.damage(1000);
			}
		}
    }
Posted by: Guest on May-14-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language