mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-01-29 00:36:01 +00:00
add blacklist-worlds feature
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user