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