add blacklist-worlds feature

This commit is contained in:
hyperdefined
2026-01-26 13:23:28 -05:00
parent 96dd3ccd89
commit a21fbf7a95
20 changed files with 70 additions and 2 deletions
@@ -42,6 +42,9 @@ public class PlayerMove implements Listener {
@EventHandler(priority = EventPriority.MONITOR)
public void onMove(PlayerMoveEvent event) {
Player player = event.getPlayer();
if (toolStats.config.getStringList("blacklist-worlds").contains(player.getWorld().toString())) {
return;
}
// player starts to fly
if (player.isGliding()) {
// if they are flying, and we don't have them tracked, add them