Interface ClearchatModule

All Superinterfaces:
org.incendo.cloud.execution.CommandExecutionHandler<FPlayer>, ModuleCommand, ModuleLocalization, ModuleSimple

public interface ClearchatModule extends ModuleCommand
The /clearchat command, which blanks the chat window.
  • Method Details

    • config

      Description copied from interface: ModuleCommand
      The config section for this command, which also holds its aliases.
      Specified by:
      config in interface ModuleCommand
      Specified by:
      config in interface ModuleSimple
      Returns:
      the command settings
    • permission

      Description copied from interface: ModuleSimple
      The permission that gates this module.
      Specified by:
      permission in interface ModuleSimple
      Returns:
      the permission
    • localization

      Localization.Command.Clearchat localization(FPlayer fPlayer)
      Description copied from interface: ModuleLocalization
      The localization section for a player, picked from their chosen language.
      Specified by:
      localization in interface ModuleLocalization
      Parameters:
      fPlayer - the player the text is for
      Returns:
      the localization settings
    • clearChat

      void clearChat(FPlayer fPlayer)
      Blanks the chat window, telling the other servers to do the same.
      Parameters:
      fPlayer - who ran the command
    • clearChat

      void clearChat(FPlayer fPlayer, boolean checkProxy)
      Blanks the chat window.
      Parameters:
      fPlayer - who ran the command
      checkProxy - whether to forward the request to the other servers