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