[DELETED}TokensPlus icon

[DELETED}TokensPlus -----

[DELETED}



Add 'Dispatch Commands' Feature on Item Purchase
Thanks to @dinoboss2001 for the suggestion!

Updated the TokensPlus shop configuration to have a 'commands' section for each item defined. This list of commands will be dispatched when the player purchases the corresponding item.

Here is the latest config.yml after this update
Code (YAML):
## TokensPlus - Configuration
config
:
  # If enabled, player token balance will be managed through a MySQL database instead of the tokens.yml flat file
  # I highly recommend restarting the server when switching between MySQL and flat file mode.
  MySQL
:
    enabled
: false
    host
: "localhost"
    port
: "3306"
    database
: "tokensplus"
    username
: "root"
    password
: ""
    useSSL
: false

  # This defines what the default starting amount of tokens the player will receive
  defaultTokenAmount
: 0

  # If enabled, the TokensPlus shop inventory will close on purchase
  shouldCloseShopOnPurchase
: true

## TokensPlus - Shop Configuration
  # You can create any number of shop pages. Just follow the structure provided and add one to the last page number
  # For example, if you wanted to add another page to the default config.yml, you would add a page3 section.
  # The numbers after the 'items' section refers to the slot number in the TokensPlus shop inventory.
  # All slot numbers are available, starting from 0, with the exception of slots 48, 49 and 50 (0-47, 51-53).
  # For 'material', refer here for the material names: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
  # For 'enchants', refer here for the enchantment names: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
shop
:
  page0
:
    items
:
      21
:
        material
: DIRT
        amount
: 64
        name
: "&664 Dirt blocks"
        lore
:
         - "&7Build a dirt house!"
        enchants
:
         -
        tokenCost
: 10
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: true
        commands
:
         - "experience add %playername% 100"
          - "tell %playername% You got 100xp for free!"
      22
:
        material
: COBBLESTONE
        amount
: 16
        name
: "&716 Cobblestone blocks"
        lore
:
         -
        enchants
:
         -
        tokenCost
: 20
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: true
        commands
:
         - "experience add %playername% 200"
      23
:
        material
: SAND
        amount
: 8
        name
: "&d8 Sand blocks"
        lore
:
         - "&8Build a TNT sand cannon"
          - "&d&lBuild a sand castle"
        tokenCost
: 40
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: true
        commands
:
         -
      30
:
        material
: CREEPER_SPAWN_EGG
        amount
: 4
        name
: "&a4 Creeper Spawn Eggs"
        lore
:
         - "&cSpawn creepers anywhere!"
        enchants
:
         -
        tokenCost
: 10
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: false
        commands
:
         -
      31
:
        material
: EXPERIENCE_BOTTLE
        amount
: 16
        name
: "&416 XP Bottles"
        lore
:
         - "&7Click to buy!"
        enchants
:
         -
        tokenCost
: 10
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: true
        commands
:
         -
      32
:
        material
: TNT
        amount
: 64
        name
: "&264 TNT"
        lore
:
         -
        enchants
:
         -
        tokenCost
: 10
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: true
        commands
:
         -
  page1
:
    items
:
      21
:
        material
: DIAMOND
        amount
: 64
        name
: "&b64 Diamonds"
        lore
:
         - "&7Click to buy!"
        enchants
:
         -
        tokenCost
: 10
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: true
        commands
:
         -
  page2
:
    items
:
      21
:
        material
: DIAMOND_SWORD
        amount
: 1
        name
: "&a&lDIAMOND SWORD!!!"
        lore
:
         - "&7Click to buy!"
        enchants
:
         - DAMAGE_ALL:4
        tokenCost
: 10
        shouldRemoveNameOnPurchase
: true
        shouldRemoveLoreOnPurchase
: false
        commands
:
         -
----------, Mar 24, 2021
Resource Information
Author:
----------
Total Downloads: 1,468
First Release: Mar 23, 2021
Last Update: Dec 31, 2021
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings