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

@@ -50,6 +50,9 @@ public class GenerateLoot implements Listener {
return;
}
Location lootLocation = event.getLootContext().getLocation();
if (toolStats.config.getStringList("blacklist-worlds").contains(lootLocation.getWorld().toString())) {
return;
}
Chunk lootChunk = lootLocation.getChunk();
Bukkit.getRegionScheduler().runDelayed(toolStats, lootLocation.getWorld(), lootChunk.getX(), lootChunk.getZ(), scheduledTask -> {
if (inventoryHolder instanceof Container) {