diff --git a/src/main/java/org/auioc/mods/arnicalib/server/command/ServerCommandRegistry.java b/src/main/java/org/auioc/mods/arnicalib/server/command/ServerCommandRegistry.java index f69738d3..4e4313f8 100644 --- a/src/main/java/org/auioc/mods/arnicalib/server/command/ServerCommandRegistry.java +++ b/src/main/java/org/auioc/mods/arnicalib/server/command/ServerCommandRegistry.java @@ -2,10 +2,10 @@ import static net.minecraft.commands.Commands.literal; import java.util.List; +import com.mojang.brigadier.Command; import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.tree.CommandNode; import org.auioc.mods.arnicalib.ArnicaLib; -import org.auioc.mods.arnicalib.server.command.impl.TestCommand; import org.auioc.mods.arnicalib.server.command.impl.VersionCommand; import net.minecraft.commands.CommandSourceStack; @@ -15,7 +15,9 @@ public final class ServerCommandRegistry { public static void register(CommandDispatcher dispatcher) { NODE.addChild(literal("version").executes((ctx) -> VersionCommand.getModVersion(ctx, ArnicaLib.MAIN_VERSION, ArnicaLib.FULL_VERSION, ArnicaLib.MOD_NAME)).build()); - NODE.addChild(literal("test").executes(TestCommand::test).build()); + NODE.addChild(literal("test").executes((ctx) -> { + return Command.SINGLE_SUCCESS; + }).build()); getRootNode(dispatcher).addChild(NODE); }