diff --git a/src/main/java/land/chipmunk/chipmunkmod/command/CommandManager.java b/src/main/java/land/chipmunk/chipmunkmod/command/CommandManager.java index 96b0e12..0c317ae 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/command/CommandManager.java +++ b/src/main/java/land/chipmunk/chipmunkmod/command/CommandManager.java @@ -17,7 +17,7 @@ import land.chipmunk.chipmunkmod.ChipmunkMod; import land.chipmunk.chipmunkmod.commands.*; public class CommandManager { - public static CommandDispatcher dispatcher = new CommandDispatcher(); + public static CommandDispatcher dispatcher = new CommandDispatcher<>(); public static String prefix = ChipmunkMod.CONFIG.commands.prefix; public static void executeCommand (String command) { @@ -63,8 +63,8 @@ public class CommandManager { return text; } - public static LiteralArgumentBuilder literal (String name) { return LiteralArgumentBuilder.literal(name); } - public static RequiredArgumentBuilder argument (String name, ArgumentType type) { return RequiredArgumentBuilder.argument(name, type); } + public static LiteralArgumentBuilder literal (String name) { return LiteralArgumentBuilder.literal(name); } + public static RequiredArgumentBuilder argument (String name, ArgumentType type) { return RequiredArgumentBuilder.argument(name, type); } static { TestCommand.register(dispatcher);