Interface CommandSender

All Known Implementing Classes:
GeyserSession

public interface CommandSender
Implemented on top of any class that can send a command. For example, it wraps around Spigot's CommandSender class.
  • Method Details

    • getName

      String getName()
    • sendMessage

      default void sendMessage(String[] messages)
    • sendMessage

      void sendMessage(String message)
    • isConsole

      boolean isConsole()
      Returns:
      true if the specified sender is from the console.
    • getLocale

      default String getLocale()
      Returns the locale of the command sender. Defaults to the default locale at LanguageUtils.getDefaultLocale().
      Returns:
      the locale of the command sender.