Module gomint.api

Interface CommandSender

    • Method Detail

      • sendMessage

        void sendMessage​(String message)
        Send a message to the client, this uses the normal ChatType enum.
        Parameters:
        message - which should be send to the client
      • sendMessage

        void sendMessage​(ChatType type,
                         String... message)
        Send a message with a given type to the client
        Parameters:
        message - which should be send
        type - of the message
      • hasPermission

        boolean hasPermission​(String permission)
        Check if player has a specific permission
        Parameters:
        permission - which should be checked for
        Returns:
        true if the player has this permission, false if not