Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Fixup command registration once again (#3937)
Dieser Commit ist enthalten in:
Ursprung
72cc9e9968
Commit
4a70e0ea2a
@ -27,7 +27,7 @@ import java.util.stream.Collectors;
|
|||||||
public class DisplayLeaksSubCmd implements ViaSubCommand {
|
public class DisplayLeaksSubCmd implements ViaSubCommand {
|
||||||
@Override
|
@Override
|
||||||
public String name() {
|
public String name() {
|
||||||
return "displayleaks <level>";
|
return "displayleaks";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -35,6 +35,11 @@ public class DisplayLeaksSubCmd implements ViaSubCommand {
|
|||||||
return "Try to hunt memory leaks!";
|
return "Try to hunt memory leaks!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String usage() {
|
||||||
|
return "displayleaks <level>";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(ViaCommandSender sender, String[] args) {
|
public boolean execute(ViaCommandSender sender, String[] args) {
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren