From 4a70e0ea2a529e4f677fb324405caf4fbc8a7f2f Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Thu, 13 Jun 2024 19:21:52 +0200 Subject: [PATCH] Fixup command registration once again (#3937) --- .../commands/defaultsubs/DisplayLeaksSubCmd.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/DisplayLeaksSubCmd.java b/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/DisplayLeaksSubCmd.java index ad8dca9ea..d21bc4728 100644 --- a/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/DisplayLeaksSubCmd.java +++ b/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/DisplayLeaksSubCmd.java @@ -27,7 +27,7 @@ import java.util.stream.Collectors; public class DisplayLeaksSubCmd implements ViaSubCommand { @Override public String name() { - return "displayleaks "; + return "displayleaks"; } @Override @@ -35,6 +35,11 @@ public class DisplayLeaksSubCmd implements ViaSubCommand { return "Try to hunt memory leaks!"; } + @Override + public String usage() { + return "displayleaks "; + } + @Override public boolean execute(ViaCommandSender sender, String[] args) { if (args.length == 1) {