Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 23:30:26 +01:00
Use our fork's removeChildByName
Dieser Commit ist enthalten in:
Ursprung
7ead4add67
Commit
329e2b0dc9
@ -125,11 +125,7 @@ public class VelocityCommandManager implements CommandManager {
|
||||
@Override
|
||||
public void unregister(final String alias) {
|
||||
Preconditions.checkNotNull(alias, "alias");
|
||||
CommandNode<CommandSource> node =
|
||||
dispatcher.getRoot().getChild(alias.toLowerCase(Locale.ENGLISH));
|
||||
if (node != null) {
|
||||
dispatcher.getRoot().getChildren().remove(node);
|
||||
}
|
||||
dispatcher.getRoot().removeChildByName(alias.toLowerCase(Locale.ENGLISH));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren