Interface ViaCommandSender


public interface ViaCommandSender
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the senders name.
    Get the senders UUID.
    boolean
    hasPermission(String permission)
    Check if the sender has a permission.
    void
    Send a message to the sender
  • Method Details

    • hasPermission

      boolean hasPermission(String permission)
      Check if the sender has a permission.
      Parameters:
      permission - Permission string e.g. viaversion.admin
      Returns:
      True if the sender has the permission
    • sendMessage

      void sendMessage(String msg)
      Send a message to the sender
      Parameters:
      msg - The message to send
    • getUUID

      UUID getUUID()
      Get the senders UUID.
      Returns:
      The senders UUID
    • getName

      String getName()
      Get the senders name.
      Returns:
      The senders name