Interface CommandIssuer

    • Method Detail

      • getIssuer

        <T> T getIssuer()
        Gets the issuer in the platforms native object
        Type Parameters:
        T -
        Returns:
      • isPlayer

        boolean isPlayer()
        Is this issue a player, or server/console sender
        Returns:
      • sendMessage

        default void sendMessage​(String message)
        Send the Command Issuer a message
        Parameters:
        message -
      • getUniqueId

        @NotNull
        @NotNull UUID getUniqueId()
        Returns:
        the unique id of that issuer
      • hasPermission

        boolean hasPermission​(String permission)
        Has permission node
        Parameters:
        permission -
        Returns:
      • sendError

        default void sendError​(co.aikar.locales.MessageKeyProvider key,
                               String... replacements)
      • sendSyntax

        default void sendSyntax​(co.aikar.locales.MessageKeyProvider key,
                                String... replacements)
      • sendInfo

        default void sendInfo​(co.aikar.locales.MessageKeyProvider key,
                              String... replacements)
      • sendError

        default void sendError​(co.aikar.locales.MessageKey key,
                               String... replacements)
      • sendSyntax

        default void sendSyntax​(co.aikar.locales.MessageKey key,
                                String... replacements)
      • sendInfo

        default void sendInfo​(co.aikar.locales.MessageKey key,
                              String... replacements)
      • sendMessageInternal

        @Deprecated
        void sendMessageInternal​(String message)
        Deprecated.
        Do not call this, for internal use. Not considered part of the API and may break.
        Parameters:
        message -