Class BrigadierCommand
java.lang.Object
com.mrivanplays.ivancord.api.command.BrigadierCommand
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
A special return value saying to forward the command to the server. -
Constructor Summary
ConstructorDescriptionBrigadierCommand
(Plugin plugin, @NonNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSender> commandNode) BrigadierCommand
(Plugin plugin, @NonNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSender> commandNode, String[] aliases) BrigadierCommand
(Plugin plugin, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSender> argumentBuilder) BrigadierCommand
(Plugin plugin, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSender> argumentBuilder, String... aliases) -
Method Summary
Modifier and TypeMethodDescriptionString[]
@NonNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSender>
void
setAliases
(String[] aliases)
-
Field Details
-
FORWARD
public static int FORWARDA special return value saying to forward the command to the server.
-
-
Constructor Details
-
BrigadierCommand
public BrigadierCommand(Plugin plugin, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSender> argumentBuilder) -
BrigadierCommand
public BrigadierCommand(Plugin plugin, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSender> argumentBuilder, String... aliases) -
BrigadierCommand
public BrigadierCommand(Plugin plugin, @NonNull @NonNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSender> commandNode) -
BrigadierCommand
public BrigadierCommand(Plugin plugin, @NonNull @NonNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSender> commandNode, String[] aliases)
-
-
Method Details
-
getPlugin
-
getCommandNode
@NonNull public @NonNull com.mojang.brigadier.tree.LiteralCommandNode<CommandSender> getCommandNode() -
getAliases
-
setAliases
-