mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-03-10 18:32:01 +00:00
add blacklist-worlds feature
This commit is contained in:
@@ -56,6 +56,9 @@ public class VillagerTrade implements Listener {
|
||||
if (!(event.getWhoClicked() instanceof Player player)) {
|
||||
return;
|
||||
}
|
||||
if (toolStats.config.getStringList("blacklist-worlds").contains(player.getWorld().toString())) {
|
||||
return;
|
||||
}
|
||||
if (player.getGameMode() == GameMode.CREATIVE || player.getGameMode() == GameMode.SPECTATOR) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user