AuraCommands 1.2.2

Create items that run commands and commands that run other commands as well!

  1. SpokenWig620933
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Contributors:
    SpokenWig620933
    This plugin allows you to run commands that run another command!
    Or even make an item that'll run commands!

    Commands:
    - Aliases: /commands, cmds
    /auracommands - Tells you the plugin's commands.
    /auracommands reload - Reloads the plugin.
    /auracommands item list - Lists all the plugin's items.
    /auracommands item give <player> <itemID> [amount] - Give a player a command item.
    /auracommands item giveall <itemID> [amount] [alts] - Give every online player a command item.
    /<custom-command>

    Permissions:
    /auracommands - auracommands.admin
    /auracommands reload - auracommands.admin.reload
    /auracommands item list - auracommands.admin.item.list
    /auracommands item give <player> <itemID> [amount] - auracommands.admin.item.give
    /auracommands item giveall <itemID> [amount] [alts] - auracommands.item.giveall
    /<custom-command> - <custom-permission>

    This plugin uses bstats, if you don't want to contribute to bstats disable bstats in the bstats folder.

    PlaceholderAPI support in text and cmds!

    config.yml

    Code (YAML):

    #-----------------------------------------#
    #                                         #
    #              AuraCommands               #
    #           by SpokenWig620933            #
    #             version: 1.2.2              #
    #                                         #
    #-----------------------------------------#
    general
    :
      # Enable this to receive debug messages.
      debug
    : false
     
      item-list
    :
        # The amount of items that'll show on each page.
        # Must be 1 or higher.
        items-per-page
    : 10
    lang.yml
    Code (YAML):

    general
    :
      # The prefix put before most messages from this plugin.
      prefix
    : '&8[&3AuraCommands&8] '
     
      # Message sent when you haven't used a valid player.
      invalid-player
    : '&cThat player doesn''t exist!'
     
      item
    :
        # Message sent to the player when they successfully gave a player an item.
        give
    : '&aYou have given {player} the item {name} x{amount}.'
        # Message sent to the player when they successfully gave everyone an item.
        giveall
    : '&aYou have given everyone the item {name} x{amount}.'
        # Message sent to the player when they successfully receive an item.
        received
    : '&bYou have received the item {name} x{amount} from {player}.'
        # Message sent to the player when they use an invalid item.
        invalid-item
    : '&cThat isn''t a valid item!'
        # The setup for the list command.
        list
    :
          header
    : '&b---------- &3&lItems &9(Page: {page})&b ----------'
          item
    : '&b- &5{itemID} &b: &r{itemName}'
          footer
    : '&b-----------------------------------'
     
          page-empty
    : '&cThere are no items on that page!'
    Defaults:
    commands/example.yml
    Code (YAML):
    #----------------------------------------------------------------------------------------------------#
    #  
    #   Types: text, text-receiver, text-receivers, cmds, cmds-receiver, cmds-receivers
    #   Placeholders: PlaceholderAPI placeholders, {player}, {sender}, {online-players}, {cmd}, {arg[#]}, {args[formula/list]}
    #
    #----------------------------------------------------------------------------------------------------#
    #commands:
    #  # The command ID.
    #  example:
    #    # The main command.
    #    cmd: example
    #    # Aliases to the command.
    #    aliases:
    #    - 'ex'
    #
    #    # The required permission for the main command.
    #    permission: auracommands.commands.example
    #    # The type of command the main command is.
    #    type: text
    #    # Since this is text, use this to send the command sender Text.
    #    text:
    #    - 'I am example'
    #
    #    # The parent permissions for the other permissions in this command.
    #    # In this case all the permissions in this command can be given with just auracommands.commands.example.*
    #    parents:
    #      1:
    #        parent: auracommands.commands.example
    #        perm: auracommands.commands.example.*
    #      2:
    #        parent: auracommands.commands.example.*
    #        perm: auracommands.commands.example.hi.*
    #      3:
    #        parent: auracommands.commands.example.hi.*
    #        perm: auracommands.commands.example.hi
    #      4:
    #        parent: auracommands.commands.example.hi.*
    #        perm: auracommands.commands.example.hi.server
    #      5:
    #        parent: auracommands.commands.example.hi.*
    #        perm: auracommands.commands.example.hi.sender.*
    #      6:
    #        parent: auracommands.commands.example.hi.sender.*
    #        perm: auracommands.commands.example.hi.sender
    #      7:
    #        parent: auracommands.commands.example.hi.sender.*
    #        perm: auracommands.commands.example.hi.sender.multiple
    #      8:
    #        parent: auracommands.commands.example.*
    #        perm: auracommands.commands.example.send.*
    #      9:
    #        parent: auracommands.commands.example.send.*
    #        perm: auracommands.commands.example.send
    #      10:
    #        parent: auracommands.commands.example.send.*
    #        perm: auracommands.commands.example.send.msg
    #
    #    # The TAB Completer for the command if there's arguments.
    #    tab-completer:
    #      # The length where it'll TAB Complete.
    #      # This would be the first argument.
    #      1:
    #        # What the argument can be.
    #        tabbed:
    #        - 'hi'
    #        - 'send'
    #      # This would be the second argument, and so forth.
    #      2:
    #        # A placeholder to allow multiple second arguments for different first arguments.
    #        1:
    #          # What's required to see these arguments.
    #          require:
    #            # What the first argument needs to be to see these arguments.
    #            1: hi
    #          # What the argument can be if the requirements are met.
    #          tabbed:
    #          - 'server'
    #          - '{online-players}'
    #        2:
    #          require:
    #            1: send
    #          tabbed:
    #          - 'msg'
    #      3:
    #        1:
    #          require:
    #            1: hi
    #            # We'll use this to represent an existing player.
    #            2: '{online-player}'
    #          tabbed:
    #          - '{online-players}'
    #        2:
    #          require:
    #            1: hi
    #            2: server
    #          tabbed:
    #          - 'owner'
    #          - 'manager'
    #      4:
    #        1:
    #          require:
    #            1: hi
    #            2: server
    #            3: owner
    #          tabbed:
    #          - 'manager'
    #        2:
    #          require:
    #            1: hi
    #            2: server
    #            3: manager
    #          tabbed:
    #          - 'owner'
    #    # The section for inputed arguments.
    #    input:
    #      # If it's only 1 argument this is called.
    #      1:
    #        # A placeholder to allow multiple first arguments.
    #        1:
    #          # What's required to run this first argument section.
    #          require:
    #            # What the first argument must be to run this.
    #            1: hi
    #          # The permission required to use this argument.
    #          permission: auracommands.commands.example.hi
    #          # The type of command this argument will act as.
    #          type: text
    #          # Since this is text, the text this will send to the command sender.
    #          # {sender} will always be replaced by who sent the command.
    #          text:
    #          - 'Hello {sender}'
    #        2:
    #          require:
    #            1: send
    #          permission: auracommands.commands.example.send
    #          type: text
    #          text:
    #          - '&cWhat kind of send is it?'
    #      # If it's 2 arguments this is called, and so forth.
    #      2:
    #        # A placeholder to allow multiple second arguments.
    #        1:
    #          # What's required to run this first argument section.
    #          require:
    #            # What the first argument must be to run this.
    #            1: hi
    #            # What the second argument must be to run this.
    #            2: server
    #
    #          # The permission required to use this argument.
    #          permission: auracommands.commands.example.hi.server
    #
    #          # The type of command this argument will act as.
    #          type: cmds
    #          # Since this is cmds, the commands this will send.
    #          # These cmds will all be run as console.
    #          cmds:
    #          - 'give {player} command_block'
    #          # These cmds will all be run as the command sender.
    #          p-cmds:
    #          - 'OP;help'
    #          # One random cmd will be run as console.
    #          r-cmds:
    #          - 'say Hi'
    #          - 'say Bye'
    #          # One random cmd will be run as the command sender.
    #          r-p-cmds:
    #          - 'me Hi'
    #          - 'me Bye'
    #        2:
    #          require:
    #            1: hi
    #            2: '{online-player}'
    #          permission: auracommands.commands.example.hi.sender
    #          type: text-receiver
    #          # Who will receive the text?
    #          # {arg[2]} will be replaced with the second argument.
    #          receiver: '{arg[2]}'
    #          text:
    #          - 'Hello {arg[2]}'
    #        3:
    #          require:
    #            1: send
    #            2: msg
    #          permission: auracommands.commands.example.send.msg
    #          type: text
    #          text:
    #          - '&cDon''t forget a message to send!'
    #      3:
    #        1:
    #          require:
    #            1: hi
    #            2: '{online-player}'
    #            3: '{online-player}'
    #          permission: auracommands.commands.example.hi.sender.multiple
    #          type: text-receivers
    #          # Whom will receive the text?
    #          receivers:
    #          # {args[?>1]} will be replaced with every player specified in the command from the second argument, forward.
    #          - '{args[?>1]}'
    #          text:
    #          # {player} will always be replaced with the current receiver.
    #          - 'Hello {player}'
    #        2:
    #          require:
    #            1: send
    #            2: msg
    #          permission: auracommands.commands.example.hi.send.msg
    #          type: text
    #          text:
    #          - 'Here''s your 5 word message.'
    #        3:
    #          require:
    #            1: send
    #            2: msg
    #          permission: auracommands.commands.example.hi.send.msg
    #          type: text-receivers
    #          receivers:
    #          - '{online-players}'
    #          # {args[3, 4, 5, 6, 7]} will be replaced with arguments 3, 4, 5, 6, 7 joined by " ".
    #          text:
    #          - '{args[3, 4, 5, 6, 7]}'
             
    commands
    :
      example
    :
        cmd
    : example
        aliases
    :
       - 'ex'
        permission
    : auracommands.commands.example
        type
    : text
        text
    :
       - '&b---------- &5&l Example &b----------'
        - '/{cmd} hi - Sends a msg saying "Hello."'
        - '/{cmd} hi server - Makes you and the server say "Hi."'
        - '/{cmd} hi <player> [player...] - Sends a msg to the other player(s) saying "Hello."'
        - '/{cmd} hi <owner/manager> - Sends a msg saying "Hello."'
        - '/{cmd} send msg [msg] - Sends a msg saying your input.'
        - '&b--------------------'
        parents
    :
          1
    :
            parent
    : auracommands.commands.example
            perm
    : auracommands.commands.example.*
          2
    :
            parent
    : auracommands.commands.example.*
            perm
    : auracommands.commands.example.hi.*
          3
    :
            parent
    : auracommands.commands.example.hi.*
            perm
    : auracommands.commands.example.hi
          4
    :
            parent
    : auracommands.commands.example.hi.*
            perm
    : auracommands.commands.example.hi.server
          5
    :
            parent
    : auracommands.commands.example.hi.*
            perm
    : auracommands.commands.example.hi.sender.*
          6
    :
            parent
    : auracommands.commands.example.hi.sender.*
            perm
    : auracommands.commands.example.hi.sender
          7
    :
            parent
    : auracommands.commands.example.hi.sender.*
            perm
    : auracommands.commands.example.hi.sender.multiple
          8
    :
            parent
    : auracommands.commands.example.*
            perm
    : auracommands.commands.example.send.*
          9
    :
            parent
    : auracommands.commands.example.send.*
            perm
    : auracommands.commands.example.send
          10
    :
            parent
    : auracommands.commands.example.send.*
            perm
    : auracommands.commands.example.send.msg
        tab-completer
    :
          1
    :
            1
    :
              require
    : {}
              tabbed
    :
             - 'hi'
              - 'send'
          2
    :
            1
    :
              require
    :
                1
    : hi
              tabbed
    :
             - 'server'
              - '{online-players}'
            2
    :
              require
    :
                1
    : send
              tabbed
    :
             - 'msg'
          3
    :
            1
    :
              require
    :
                1
    : hi
                2
    : '{online-player}'
              tabbed
    :
             - '{online-players}'
            2
    :
              require
    :
                1
    : hi
                2
    : server
              tabbed
    :
             - 'owner'
              - 'manager'
          4
    :
            1
    :
              require
    :
                1
    : hi
                2
    : server
                3
    : owner
              tabbed
    :
             - 'manager'
            2
    :
              require
    :
                1
    : hi
                2
    : server
                3
    : manager
              tabbed
    :
             - 'owner'
        input
    :
          1
    :
            1
    :
              require
    :
                1
    : hi
              permission
    : auracommands.commands.example.hi
              type
    : text
              text
    :
             - 'Hello {player}'
            2
    :
              require
    :
                1
    : send
              permission
    : auracommands.commands.example.send
              type
    : text
              text
    :
             - '&cWhat kind of send is it?'
          2
    :
            1
    :
              require
    :
                1
    : hi
                2
    : server
              permission
    : auracommands.commands.example.hi.server
              type
    : cmds
              cmds
    :
             - 'give {player} command_block'
              p-cmds
    :
             - 'OP;help'
              r-cmds
    :
             - 'say Hi'
              - 'say Bye'
              r-p-cmds
    :
             - 'me Hi'
              - 'me Bye'
            2
    :
              require
    :
                1
    : hi
                2
    : '{online-player}'
              permission
    : auracommands.commands.example.hi.sender
              type
    : text-receiver
              receiver
    : '{arg[2]}'
              text
    :
             - 'Hello {arg[2]}'
            3
    :
              require
    :
                1
    : send
                2
    : msg
              permission
    : auracommands.commands.example.send.msg
              type
    : text
              text
    :
             - '&cDon''t forget a message to send!'
          3
    :
            1
    :
              require
    :
                1
    : hi
                2
    : '{online-player}'
                3
    : '{online-player}'
              permission
    : auracommands.commands.example.hi.sender.multiple
              type
    : text-receivers
              receivers
    :
             - '{args[?>1]}'
              text
    :
             - 'Hello {player}'
            2
    :
              require
    :
                1
    : send
                2
    : msg
              permission
    : auracommands.commands.example.hi.send.msg
              type
    : text
              text
    :
             - '&aSent your 5 word message.'
            3
    :
              require
    :
                1
    : send
                2
    : msg
              permission
    : auracommands.commands.example.hi.send.msg
              type
    : text-receivers
              receivers
    :
             - '{online-players}'
              text
    :
             - '{args[3, 4, 5, 6, 7]}'
      example-empty
    :
        cmd
    : example-empty
        type
    : cmds
        cmds
    :
       - 'me {player} &bYAY, I ran an example command!'
    items/example.yml
    Code (YAML):
    #----------------------------------------------------------------------------------------------------#
    #  
    #   Types: text, cmds
    #   placeholders: PlaceholderAPI placeholders, {player}
    #
    #----------------------------------------------------------------------------------------------------#
    # --------------------------------------------------
    #items:
    #  # This is the ID of the item.
    #  example:
    #    # Whether the item should disapear when it's used.
    #    consume: true
    #    # The permission required to use this item.
    #    permission: auracommands.item.example
    #    # This is the display name of the item.
    #    name: '&5&lExample'
    #    # This is the lore of the item.
    #    lore:
    #    - '&bClick me to run the example!'
    #    item:
    #      # This is the material of the item.
    #      material: PAPER
    #      # This is the meta ID of the item.
    #      data: 0
    #      # Whether this item looks enchanted or not.
    #      glow: true
    #    # The type of item this is.
    #    type: text
    #    # The text to be sent when this item is clicked.
    #    text:
    #      - '&5&lI am an example item command!'
    # --------------------------------------------------
    #  example-cmd:
    #    # Whether the item should disapear when it's used.
    #    consume: false
    #    item:
    #      # This is the material of the item.
    #      material: PAPER
    #    # The type of item this is.
    #    type: cmds
    #    # Commands run by console when using this.
    #    cmds:
    #    - 'whisper {player} &bYAY, you ran an example item!'
    #    # Commands run by the player when this is used.
    #    p-cmds:
    #    - 'OP;me {player} &bYAY, you ran an example item!'
    #    # A random command is run by console when using this.
    #    r-cmds:
    #    - 'whisper {player} &bYAY, you ran an example item!'
    #    - 'whisper {player} &bOOOHH, An Example item!'
    #    # A random command is run by the player when using this.
    #    r-p-cmds:
    #    - 'me {player} &bYAY, you ran an example item!'
    #    - 'me {player} &bOOOHH, An Example item!'
    # --------------------------------------------------
    #  hello-cosmetic:
    #    # Whether the item should disapear when it's used.
    #    consume: false
    #    # The permission required to get this item since it's cosmetic.
    #    permission: auracommands.item.hello-cosmetic
    #    # If this is here it won't act like your normal item anymore.
    #    cosmetic:
    #      # When the player will receive this cosmetic item.
    #      # Choices: join, first-join.
    #      when: join
    #      # The slot the item will be set to(If there's an item in the slot it will be moved or dropped).
    #      slot: 8
    #      # Little custom flags for cosmetic items.
    #      # INVENTORY_MOVE - Prevents the item from being moved in the player's inventory from the set slot.
    #      # DEATH - Will deny the item to drop upon death and force itself into the player's inventory upon respawn.
    #      # DROP - Will prevent the player from dropping the item.
    #      flags:
    #      - 'INVENTORY_MOVE'
    #      - 'DEATH'
    #      - 'DROP'
    #    # This is the display name of the item.
    #    name: '&5&lSay Hello'
    #    # This is the lore of the item.
    #    lore:
    #    - '&bClick me to run the example!'
    #    item:
    #      # This is the material of the item.
    #      material: PAPER
    #      # This is the meta ID of the item.
    #      data: 0
    #      # Whether this item looks enchanted or not.
    #      glow: true
    #    # The type of item this is.
    #    type: text
    #    # The text to be sent when this item is clicked.
    #    text:
    #      - '&5&lHello there {player}!'
    # --------------------------------------------------
         
    items
    :
      example
    :
        consume
    : true
        permission
    : auracommands.item.example
        name
    : '&5&lExample'
        lore
    :
       - '&bClick me to run the example!'
        item
    :
          material
    : PAPER
          data
    : 0
          glow
    : true
        type
    : text
        text
    :
       - '&5&lI am an example item command!'
      example-cmd
    :
        consume
    : false
        item
    :
          material
    : PAPER
        type
    : cmds
        cmds
    :
       - 'tell {player} &bYAY, you ran an example item!'
        p-cmds
    :
       - 'OP;me {player} &bYAY, you ran an example item!'
        r-cmds
    :
       - 'tell {player} &bYAY, you ran an example item!'
        r-p-cmds
    :
       - 'me {player} &bYAY, you ran an example item!'
      hello-cosmetic
    :
        consume
    : false
        permission
    : auracommands.item.hello-cosmetic
        cosmetic
    :
          when
    : join
          slot
    : 8
          flags
    :
         - 'INVENTORY_MOVE'
          - 'DEATH'
          - 'DROP'
        name
    : '&5&lSay Hello'
        lore
    :
       - '&bClick me to run the example!'
        item
    :
          material
    : PAPER
          data
    : 0
          glow
    : true
        type
    : text
        text
    :
         - '&5&lHello there {player}!'

Recent Updates

  1. Bug Fix
  2. Feature Update and Bug Fix
  3. Feature Updates and Bug Fix