Class PluginCommands

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<org.bukkit.command.TabExecutor>
me.ryun.plugintools.PluginCommands
All Implemented Interfaces:
Serializable, Cloneable, Iterable<org.bukkit.command.TabExecutor>, Collection<org.bukkit.command.TabExecutor>, List<org.bukkit.command.TabExecutor>, RandomAccess

public class PluginCommands extends ArrayList<org.bukkit.command.TabExecutor>
A call list for all of the TabExecutor in the JavaPlugin
Author:
SSS Ryun
See Also:
  • Constructor Details

    • PluginCommands

      public PluginCommands()
  • Method Details

    • call

      public boolean call(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
      Calls each CommandExecutor.onCommand(CommandSender, Command, String, String[]) by order and stops when one returns true, effectively prioritizing by order
      Parameters:
      sender - CommandSender
      command - Command
      label - String
      args - String
      Returns:
      If a command was executed
    • callAll

      public boolean callAll(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
      Calls each CommandExecutor.onCommand(CommandSender, Command, String, String[]) by order without stopping
      Parameters:
      sender - CommandSender
      command - Command
      label - String
      args - String
      Returns:
      If a command was executed
    • completeTab

      @Nullable public @Nullable List<String> completeTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args)
      Calls each TabCompleter.onTabComplete(CommandSender, Command, String, String[]) by order and stops when one returns values, effectively prioritizing by order
      Parameters:
      sender - CommandSender
      command - Command
      alias - String
      args - String
      Returns:
    • completeTabAll

      @Nullable public @Nullable List<String> completeTabAll(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args)
      Calls each TabCompleter.onTabComplete(CommandSender, Command, String, String[]) by order without stopping
      Parameters:
      sender - CommandSender
      command - Command
      alias - String
      args - String
      Returns: