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