MRPGNPC

MRPGNPC 1.2.5

Is there a way to turn the kill all entity part off?
I've just seen the code,if the mob is not the MRPGNPC, it won't be killed,so idk how to fix this bug
here's the code
@Override
public void onDisable() {
for (Level level :getServer().getLevels().values()){
for (Entity entity:level.getEntities()){
if (entity instanceof MobNPC){
entity.kill();
}
}
}
}
 
Back
Top