add blacklist-worlds feature

This commit is contained in:
hyperdefined
2026-01-26 13:23:28 -05:00
parent 96dd3ccd89
commit a21fbf7a95
20 changed files with 70 additions and 2 deletions

View File

@@ -49,6 +49,9 @@ public class EntityDeath implements Listener {
if (livingEntity instanceof Player) {
return;
}
if (toolStats.config.getStringList("blacklist-worlds").contains(livingEntity.getWorld().toString())) {
return;
}
UUID livingEntityUUID = event.getEntity().getUniqueId();
// if it's a mob we are tracking that matters
if (toolStats.mobKill.trackedMobs.contains(livingEntityUUID)) {