Interface PlatformCommandSender

All Known Subinterfaces:
PlatformPlayer
All Known Implementing Classes:
BukkitPlatformCommandSender, BukkitPlatformPlayer

public interface PlatformCommandSender
Represents a platform-independent command-capable object.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Get the name of this sender.
    boolean
    hasPermission(@NotNull String permission)
    Check whether or not this sender has the given permission.
    void
    sendMessage(@NotNull String message)
    Send a message.
  • Method Details

    • getName

      @NotNull @NotNull String getName()
      Get the name of this sender.
      Returns:
      the name
    • sendMessage

      void sendMessage(@NotNull @NotNull String message)
      Send a message.
      Parameters:
      message - the message to send
    • hasPermission

      boolean hasPermission(@NotNull @NotNull String permission)
      Check whether or not this sender has the given permission.
      Parameters:
      permission - the permission to check
      Returns:
      true if the sender has the given permission, false otherwise