Class BukkitCommand
- java.lang.Object
-
- org.bukkit.command.Command
-
- dev.hypera.chameleon.platform.bukkit.command.BukkitCommand
-
@Internal public final class BukkitCommand extends org.bukkit.command.CommandBukkit command wrapper.
-
-
Constructor Summary
Constructors Constructor Description BukkitCommand(@NotNull dev.hypera.chameleon.Chameleon chameleon, @NotNull BukkitUserManager userManager, @NotNull dev.hypera.chameleon.command.Command command)Bukkit command constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String[] args)@NotNull List<String>tabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull String alias, @NotNull String[] args)-
Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
-
-
-
Constructor Detail
-
BukkitCommand
@Internal public BukkitCommand(@NotNull @NotNull dev.hypera.chameleon.Chameleon chameleon, @NotNull @NotNull BukkitUserManager userManager, @NotNull @NotNull dev.hypera.chameleon.command.Command command)Bukkit command constructor.- Parameters:
chameleon- Bukkit Chameleon implementation.userManager- Bukkit user manager implementation.command- Command to be wrapped.
-
-
Method Detail
-
execute
public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, @NotNull @NotNull String[] args)- Specified by:
executein classorg.bukkit.command.Command
-
tabComplete
@NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) throws IllegalArgumentException
- Overrides:
tabCompletein classorg.bukkit.command.Command- Throws:
IllegalArgumentException
-
-