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