Interface ModuleCommand

All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleLocalization, ModuleSimple
All Known Subinterfaces:
AfkModule, AnonModule, BallModule, BanlistModule, BanModule, BroadcastModule, ChatcolorModule, ChatsettingModule, ClearchatModule, ClearmailModule, CoinModule, DeletemessageModule, DiceModule, DoModule, EmitModule, FlectonepulseModule, GeolocateModule, HelperModule, IgnorelistModule, IgnoreModule, KickModule, MailModule, MaintenanceModule, MeModule, MinesweeperModule, MutelistModule, MuteModule, NicknameModule, OnlineModule, PingModule, PollModule, ReplyModule, RockpaperscissorsModule, SpriteModule, SpyModule, StreamModule, SymbolModule, TellModule, TictactoeModule, ToponlineModule, TranslatetoModule, TryModule, UnbanModule, UnmuteModule, UnwarnModule, WarnlistModule, WarnModule, WhitelistModule, WhoisModule

public interface ModuleCommand extends ModuleLocalization, org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>
A module that registers a chat command.
  • Method Details

    • config

      CommandSetting config()
      The config section for this command, which also holds its aliases.
      Specified by:
      config in interface ModuleSimple
      Returns:
      the command settings
    • execute

      void execute(FPlayer fPlayer, org.incendo.cloud.context.CommandContext<FPlayer> commandContext)
      Runs the command.
      Parameters:
      fPlayer - who ran it
      commandContext - the parsed arguments
    • execute

      default void execute(@NonNull org.incendo.cloud.context.CommandContext<FPlayer> commandContext)
      Specified by:
      execute in interface org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>