From 4d2c2cb36f8804f4d1f4d214f821198f5bbb0697 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Fri, 18 Oct 2024 15:53:27 +0200 Subject: [PATCH] Remove leftover command --- .../java/cc/reconnected/server/RccServer.java | 2 -- .../server/commands/RccCommand.java | 20 ------------------- 2 files changed, 22 deletions(-) delete mode 100644 src/main/java/cc/reconnected/server/commands/RccCommand.java diff --git a/src/main/java/cc/reconnected/server/RccServer.java b/src/main/java/cc/reconnected/server/RccServer.java index 5b27435..678d798 100644 --- a/src/main/java/cc/reconnected/server/RccServer.java +++ b/src/main/java/cc/reconnected/server/RccServer.java @@ -1,7 +1,6 @@ package cc.reconnected.server; import cc.reconnected.server.commands.AfkCommand; -import cc.reconnected.server.commands.RccCommand; import cc.reconnected.server.database.PlayerData; import cc.reconnected.server.events.PlayerActivityEvents; import cc.reconnected.server.events.PlayerWelcome; @@ -82,7 +81,6 @@ public class RccServer implements ModInitializer { LOGGER.info("Starting rcc-server"); - CommandRegistrationCallback.EVENT.register(RccCommand::register); CommandRegistrationCallback.EVENT.register(AfkCommand::register); ServerLifecycleEvents.SERVER_STARTED.register(server -> { diff --git a/src/main/java/cc/reconnected/server/commands/RccCommand.java b/src/main/java/cc/reconnected/server/commands/RccCommand.java deleted file mode 100644 index be0d1be..0000000 --- a/src/main/java/cc/reconnected/server/commands/RccCommand.java +++ /dev/null @@ -1,20 +0,0 @@ -package cc.reconnected.server.commands; - -import com.mojang.brigadier.CommandDispatcher; -import net.minecraft.command.CommandRegistryAccess; -import net.minecraft.server.command.CommandManager; -import net.minecraft.server.command.ServerCommandSource; - -import static net.minecraft.server.command.CommandManager.literal; - -public class RccCommand { - public static void register(CommandDispatcher dispatcher, CommandRegistryAccess registryAccess, CommandManager.RegistrationEnvironment environment) { - dispatcher.register( - literal("rcc") - .requires(source -> source.hasPermissionLevel(2)) - .executes(ctx -> { - return 1; - }) - ); - } -}