Class BukkitCommandImpl

  • All Implemented Interfaces:
    org.bukkit.command.CommandExecutor

    public class BukkitCommandImpl
    extends org.bukkit.command.Command
    implements org.bukkit.command.CommandExecutor
    • Field Summary

      • Fields inherited from class org.bukkit.command.Command

        description, timings, usageMessage
    • Constructor Summary

      Constructors 
      Constructor Description
      BukkitCommandImpl​(@NotNull com.alessiodp.core.common.ADPPlugin plugin, @NotNull com.alessiodp.core.common.commands.utils.ADPMainCommand mainCommand)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute​(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull String cmd, String[] args)  
      boolean onCommand​(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String cmd, String[] args)  
      @NotNull List<String> tabComplete​(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull String alias, 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

      • BukkitCommandImpl

        public BukkitCommandImpl​(@NotNull
                                 @NotNull com.alessiodp.core.common.ADPPlugin plugin,
                                 @NotNull
                                 @NotNull com.alessiodp.core.common.commands.utils.ADPMainCommand mainCommand)
    • Method Detail

      • execute

        public boolean execute​(@NotNull
                               @NotNull org.bukkit.command.CommandSender commandSender,
                               @NotNull
                               @NotNull String cmd,
                               String[] args)
        Specified by:
        execute in class org.bukkit.command.Command
      • onCommand

        public boolean onCommand​(@NotNull
                                 @NotNull org.bukkit.command.CommandSender commandSender,
                                 @NotNull
                                 @NotNull org.bukkit.command.Command command,
                                 @NotNull
                                 @NotNull String cmd,
                                 String[] args)
        Specified by:
        onCommand in interface org.bukkit.command.CommandExecutor
      • tabComplete

        @NotNull
        public @NotNull List<String> tabComplete​(@NotNull
                                                 @NotNull org.bukkit.command.CommandSender commandSender,
                                                 @NotNull
                                                 @NotNull String alias,
                                                 String[] args)
        Overrides:
        tabComplete in class org.bukkit.command.Command