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

@@ -54,6 +54,9 @@ public class PickupItem implements Listener {
}
Entity entity = event.getEntity();
if (entity instanceof Player player) {
if (toolStats.config.getStringList("blacklist-worlds").contains(player.getWorld().toString())) {
return;
}
if (player.getGameMode() == GameMode.CREATIVE && !toolStats.config.getBoolean("allow-creative")) {
return;
}