mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-04-22 19:11:23 +00:00
add blacklist-worlds feature
This commit is contained in:
@@ -62,6 +62,9 @@ public class PlayerInteract implements Listener {
|
||||
}
|
||||
|
||||
Player player = event.getPlayer();
|
||||
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