Package dev.majek.pc.command
Class PartyChatCommand
- java.lang.Object
-
- dev.majek.pc.chat.MessageHandler
-
- dev.majek.pc.command.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 Summary
Fields Modifier and Type Field Description static org.bukkit.configuration.file.FileConfiguration
mainConfig
PartyChat's main config file.
-
Constructor Summary
Constructors Constructor Description PartyChatCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)
List<String>
onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args)
static void
reload()
Refresh the main PartyChat config object used in this class and subclasses.-
Methods inherited from class dev.majek.pc.chat.MessageHandler
sendFormattedMessage, sendMessage, sendMessage, sendMessageWithEverything, sendMessageWithReplacement, sendMessageWithReplacements
-
-
-
-
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 interfaceorg.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 interfaceorg.bukkit.command.TabCompleter
- Throws:
IllegalArgumentException
-
-