aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java b/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java
deleted file mode 100644
index 5f6e0362..00000000
--- a/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package de.hysky.skyblocker.debug;
-
-import com.mojang.brigadier.Command;
-import com.mojang.brigadier.CommandDispatcher;
-import de.hysky.skyblocker.SkyblockerMod;
-import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
-import net.minecraft.command.CommandRegistryAccess;
-import net.minecraft.entity.player.PlayerEntity;
-import net.minecraft.text.Text;
-
-import static net.fabricmc.fabric.api.client.command.v2.ClientCommandManager.literal;
-
-public class DumpPlayersCommand {
-
- static void register(CommandDispatcher<FabricClientCommandSource> dispatcher, CommandRegistryAccess registryAccess) {
- dispatcher.register(literal(SkyblockerMod.NAMESPACE)
- .then(literal("debug")
- .then(literal("dumpPlayers")
- .executes(context -> {
- FabricClientCommandSource source = context.getSource();
-
- source.getWorld().getEntities().forEach(e -> {
- if (e instanceof PlayerEntity player) {
- source.sendFeedback(Text.of("'" + player.getName().getString() + "'"));
- }
- });
-
- return Command.SINGLE_SUCCESS;
- }))));
- }
-}