Interface ViaCommandSender


  • public interface ViaCommandSender
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Get the senders name.
      java.util.UUID getUUID()
      Get the senders UUID.
      boolean hasPermission​(java.lang.String permission)
      Check if the sender has a permission.
      void sendMessage​(java.lang.String msg)
      Send a message to the sender
    • Method Detail

      • hasPermission

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

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

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

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