mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-04-22 19:11:23 +00:00
add blacklist-worlds feature
This commit is contained in:
@@ -56,6 +56,10 @@ public class EntityDamage implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (toolStats.config.getStringList("blacklist-worlds").contains(mobBeingAttacked.getWorld().toString())) {
|
||||
return;
|
||||
}
|
||||
|
||||
// ignore void and /kill damage
|
||||
EntityDamageEvent.DamageCause cause = event.getCause();
|
||||
if (ignoredCauses.contains(cause)) {
|
||||
|
||||
Reference in New Issue
Block a user