Class AliasCommand


  • public class AliasCommand
    extends org.bukkit.command.Command
    • Constructor Summary

      Constructors 
      Constructor Description
      AliasCommand​(java.lang.String name, AliasCommandManager aliasCommandManager, java.lang.String targetCommand)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String buildCommand​(java.lang.String[] args)  
      boolean execute​(@NotNull org.bukkit.command.CommandSender sender, @NotNull java.lang.String commandLabel, @NotNull java.lang.String[] args)  
      protected org.bukkit.command.SimpleCommandMap getCommandMap()  
      @NotNull java.util.List<java.lang.String> tabComplete​(@NotNull org.bukkit.command.CommandSender sender, @NotNull java.lang.String alias, @NotNull java.lang.String[] args)  
      @NotNull java.util.List<java.lang.String> tabComplete​(@NotNull org.bukkit.command.CommandSender sender, @NotNull java.lang.String alias, @NotNull java.lang.String[] args, @Nullable org.bukkit.Location location)  
      • 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, testPermission, testPermissionSilent, toString, unregister
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • targetCommand

        protected final java.lang.String targetCommand
    • Constructor Detail

      • AliasCommand

        public AliasCommand​(java.lang.String name,
                            AliasCommandManager aliasCommandManager,
                            java.lang.String targetCommand)
    • Method Detail

      • getCommandMap

        protected org.bukkit.command.SimpleCommandMap getCommandMap()
      • buildCommand

        protected java.lang.String buildCommand​(java.lang.String[] args)
      • execute

        public boolean execute​(@NotNull
                               @NotNull org.bukkit.command.CommandSender sender,
                               @NotNull
                               @NotNull java.lang.String commandLabel,
                               @NotNull
                               @NotNull java.lang.String[] args)
        Specified by:
        execute in class org.bukkit.command.Command
      • tabComplete

        @NotNull
        public @NotNull java.util.List<java.lang.String> tabComplete​(@NotNull
                                                                     @NotNull org.bukkit.command.CommandSender sender,
                                                                     @NotNull
                                                                     @NotNull java.lang.String alias,
                                                                     @NotNull
                                                                     @NotNull java.lang.String[] args,
                                                                     @Nullable
                                                                     @Nullable org.bukkit.Location location)
                                                              throws java.lang.IllegalArgumentException
        Overrides:
        tabComplete in class org.bukkit.command.Command
        Throws:
        java.lang.IllegalArgumentException
      • tabComplete

        @NotNull
        public @NotNull java.util.List<java.lang.String> tabComplete​(@NotNull
                                                                     @NotNull org.bukkit.command.CommandSender sender,
                                                                     @NotNull
                                                                     @NotNull java.lang.String alias,
                                                                     @NotNull
                                                                     @NotNull java.lang.String[] args)
                                                              throws java.lang.IllegalArgumentException
        Overrides:
        tabComplete in class org.bukkit.command.Command
        Throws:
        java.lang.IllegalArgumentException