Interface CommandCaller

All Known Implementing Classes:
ConsolePlayer, PlotPlayer

public interface CommandCaller
Any entity that is able to execute commands, receive messages & and have permission nodes
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the type of the caller
    boolean
    hasPermission​(@NonNull String permission)
    Check the player's permissions.
    void
    sendMessage​(@NonNull Caption caption, @NonNull net.kyori.adventure.text.minimessage.Template... replacements)
    Send a message to the command caller
  • Method Details

    • sendMessage

      void sendMessage(@NonNull Caption caption, @NonNull net.kyori.adventure.text.minimessage.Template... replacements)
      Send a message to the command caller
      Parameters:
      caption - Caption to send
      replacements - Variable replacements
    • hasPermission

      boolean hasPermission(@NonNull String permission)
      Check the player's permissions. Will be cached if permission caching is enabled.
      Parameters:
      permission - the name of the permission
      Returns:
      if permission is had
    • getSuperCaller

      RequiredType getSuperCaller()
      Get the type of the caller
      Returns:
      Caller type