Interface CommandHandler

All Known Implementing Classes:
AccountCommand, AchievementCommand, AnnounceCommand, BanCommand, ClearCommand, CoopCommand, EnterDungeonCommand, GiveCommand, HealCommand, HelpCommand, KickCommand, KillAllCommand, KillCharacterCommand, LanguageCommand, ListCommand, PermissionCommand, PositionCommand, QuestCommand, ReloadCommand, ResetConstCommand, ResetShopLimitCommand, SendMailCommand, SendMessageCommand, SetConstCommand, SetFetterLevelCommand, SetPropCommand, SetStatsCommand, SpawnCommand, StopCommand, TalentCommand, TeamCommand, TeleportAllCommand, TeleportCommand, UnBanCommand, UnlockAllCommand, WeatherCommand

public interface CommandHandler
  • Method Details

    • sendMessage

      static void sendMessage(Player player, String message)
      Send a message to the target.
      Parameters:
      player - The player to send the message to, or null for the server console.
      message - The message to send.
    • sendTranslatedMessage

      static void sendTranslatedMessage(Player player, String messageKey, Object... args)
    • getUsageString

      default String getUsageString(Player player, String... args)
    • sendUsageMessage

      default void sendUsageMessage(Player player, String... args)
    • getLabel

      default String getLabel()
    • getDescriptionKey

      default String getDescriptionKey()
    • getDescriptionString

      default String getDescriptionString(Player player)
    • execute

      default void execute(Player sender, Player targetPlayer, List<String> args)
      Called when a player/console invokes a command.
      Parameters:
      sender - The player/console that invoked the command.
      args - The arguments to the command.