Interface ICommandSender

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of the command sender
      boolean hasPermission​(java.lang.String permission)
      Checks, that the commandSender has the permission to execute the command
      void sendMessage​(java.lang.String message)
      Sends a message to the specific sender implementation
      void sendMessage​(java.lang.String... messages)
      Send the messages to the specific sender implementation
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the command sender
      • sendMessage

        void sendMessage​(java.lang.String message)
        Sends a message to the specific sender implementation
        Parameters:
        message - that should send
      • sendMessage

        void sendMessage​(java.lang.String... messages)
        Send the messages to the specific sender implementation
        Parameters:
        messages - that should send
      • hasPermission

        boolean hasPermission​(java.lang.String permission)
        Checks, that the commandSender has the permission to execute the command
        Parameters:
        permission - the permission, that should that
        Returns:
        true if the command sender is authorized that it has the permission