Class PartyChatCommand

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

    public class PartyChatCommand
    extends MessageHandler
    implements org.bukkit.command.TabCompleter, org.bukkit.command.CommandExecutor
    Handles all /partychat commands and subcommands.
    • Field Detail

      • mainConfig

        public static org.bukkit.configuration.file.FileConfiguration mainConfig
        PartyChat's main config file.
    • Constructor Detail

      • PartyChatCommand

        public PartyChatCommand()
    • Method Detail

      • reload

        public static void reload()
        Refresh the main PartyChat config object used in this class and subclasses.
      • onCommand

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

        public List<String> onTabComplete​(@NotNull
                                          @NotNull org.bukkit.command.CommandSender sender,
                                          @NotNull
                                          @NotNull org.bukkit.command.Command command,
                                          @NotNull
                                          @NotNull String alias,
                                          @NotNull
                                          @NotNull String[] args)
                                   throws IllegalArgumentException
        Specified by:
        onTabComplete in interface org.bukkit.command.TabCompleter
        Throws:
        IllegalArgumentException