chore: remove poorly implemented /ps debug loadedchunks command

- the same (but correctly implemented) functionality exists in other plugins
 - closes #4140
This commit is contained in:
dordsor21 2023-09-30 16:48:13 +01:00
parent e138dc0267
commit 9ebc5b81de
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -85,16 +85,6 @@ public class Debug extends SubCommand {
return true; 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])) { if (args.length > 0 && "uuids".equalsIgnoreCase(args[0])) {
final Collection<UUIDMapping> mappings = PlotSquared.get().getImpromptuUUIDPipeline().getAllImmediately(); final Collection<UUIDMapping> mappings = PlotSquared.get().getImpromptuUUIDPipeline().getAllImmediately();
player.sendMessage( player.sendMessage(