Interface CommandSender

All Known Implementing Classes:
BungeeCommandSender, GeyserSession, GeyserStandaloneLogger, SpigotCommandSender, SpongeCommandSender, VelocityCommandSender

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

    • name

      String name()
    • 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 GeyserLocale.getDefaultLocale().
      Returns:
      the locale of the command sender.
    • hasPermission

      boolean hasPermission(String permission)
      Checks if the CommandSender has a permission
      Parameters:
      permission - The permission node to check
      Returns:
      true if the CommandSender has the requested permission, false if not