Package me.lucyy.squirtgun.bukkit
Class BukkitNodeExecutor
java.lang.Object
me.lucyy.squirtgun.bukkit.BukkitNodeExecutor
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
public class BukkitNodeExecutor
extends java.lang.Object
implements org.bukkit.command.TabExecutor
Wraps a
CommandNode so it can be executed by a Bukkit server.-
Constructor Summary
Constructors Constructor Description BukkitNodeExecutor(me.lucyy.squirtgun.command.node.CommandNode<me.lucyy.squirtgun.platform.PermissionHolder> node, me.lucyy.squirtgun.format.FormatProvider formatter) -
Method Summary
Modifier and Type Method Description booleanonCommand(@NotNull org.bukkit.command.CommandSender bukkitSender, @NotNull org.bukkit.command.Command command, @NotNull java.lang.String label, @NotNull java.lang.String[] args)@Nullable java.util.List<java.lang.String>onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull java.lang.String alias, @NotNull java.lang.String[] stringArgs)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BukkitNodeExecutor
public BukkitNodeExecutor(me.lucyy.squirtgun.command.node.CommandNode<me.lucyy.squirtgun.platform.PermissionHolder> node, me.lucyy.squirtgun.format.FormatProvider formatter)- Parameters:
node- the root command node to executeformatter- the command sender to pass to the context
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender bukkitSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull java.lang.String label, @NotNull @NotNull java.lang.String[] args)- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
@Nullable public @Nullable java.util.List<java.lang.String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull java.lang.String alias, @NotNull @NotNull java.lang.String[] stringArgs)- Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter
-