Interface CommandHandler

All Known Implementing Classes:
AccountCommand, BroadcastCommand, ChangeSceneCommand, ClearCommand, CoopCommand, DropCommand, EnterDungeonCommand, GiveAllCommand, GiveArtifactCommand, GiveCharCommand, GiveCommand, GodModeCommand, HealCommand, HelpCommand, JoinCommand, KickCommand, KillAllCommand, KillCharacterCommand, LanguageCommand, ListCommand, NoStaminaCommand, PermissionCommand, PositionCommand, QuestCommand, ReloadCommand, RemoveCommand, ResetConstCommand, ResetShopLimitCommand, RestartCommand, SendMailCommand, SendMessageCommand, SetFetterLevelCommand, SetStatsCommand, SetWorldLevelCommand, SpawnCommand, StopCommand, TalentCommand, TeleportAllCommand, TeleportCommand, UnlockTowerCommand, WeatherCommand

public interface CommandHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    execute(Player sender, Player targetPlayer, List<String> args)
    Called when a player/console invokes a command.
    static void
    sendMessage(Player player, String message)
    Send a message to the target.
  • 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.
    • 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.