From 9ebc5b81debd098ae602f95bd375ab1cebf9410e Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 30 Sep 2023 16:48:13 +0100 Subject: [PATCH] chore: remove poorly implemented /ps debug loadedchunks command - the same (but correctly implemented) functionality exists in other plugins - closes #4140 --- .../main/java/com/plotsquared/core/command/Debug.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Debug.java b/Core/src/main/java/com/plotsquared/core/command/Debug.java index 1e0090e44..242f26bb7 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Debug.java +++ b/Core/src/main/java/com/plotsquared/core/command/Debug.java @@ -85,16 +85,6 @@ public class Debug extends SubCommand { return true; } } - if (args.length > 0 && "loadedchunks".equalsIgnoreCase(args[0])) { - final long start = System.currentTimeMillis(); - player.sendMessage(TranslatableCaption.of("debug.fetching_loaded_chunks")); - TaskManager.runTaskAsync(() -> player.sendMessage(StaticCaption - .of("Loaded chunks: " + this.worldUtil - .getChunkChunks(player.getLocation().getWorldName()) - .size() + " (" + (System.currentTimeMillis() - - start) + "ms) using thread: " + Thread.currentThread().getName()))); - return true; - } if (args.length > 0 && "uuids".equalsIgnoreCase(args[0])) { final Collection mappings = PlotSquared.get().getImpromptuUUIDPipeline().getAllImmediately(); player.sendMessage(