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