Skip to content

Commit

Permalink
refactor(command): fix method name ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Mar 29, 2022
1 parent 1cf2c93 commit f41bcc2
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -12,9 +12,14 @@
public final class AHClientCommands {

public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
getRootNode(dispatcher);
getAHNode(dispatcher);
}

/**
* @since 5.0.2
* @deprecated Use {@link #getAHNode} instead
*/
@Deprecated(since = "5.1.3")
public static CommandNode<CommandSourceStack> getRootNode(CommandDispatcher<CommandSourceStack> dispatcher) {
CommandNode<CommandSourceStack> node = dispatcher.findNode(List.of("ah"));
if (node == null) {
Expand All @@ -23,4 +28,8 @@ public static CommandNode<CommandSourceStack> getRootNode(CommandDispatcher<Comm
return node;
}

public static CommandNode<CommandSourceStack> getAHNode(CommandDispatcher<CommandSourceStack> dispatcher) {
return getRootNode(dispatcher);
}

}

0 comments on commit f41bcc2

Please sign in to comment.