Package emu.grasscutter.command
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 Summary
Modifier and TypeMethodDescriptiondefault voidCalled when a player/console invokes a command.default Stringdefault StringgetDescriptionString(Player player) default StringgetLabel()default StringgetUsageString(Player player, String... args) static voidsendMessage(Player player, String message) Send a message to the target.static voidsendTranslatedMessage(Player player, String messageKey, Object... args) default voidsendUsageMessage(Player player, String... args)
-
Method Details
-
sendMessage
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
-
getUsageString
-
sendUsageMessage
-
getLabel
-
getDescriptionKey
-
getDescriptionString
-
execute
Called when a player/console invokes a command.- Parameters:
sender- The player/console that invoked the command.args- The arguments to the command.
-