BAMobCoins icon

BAMobCoins -----

Easy to use plugin for adding another aspect of currency to your server!




This is a big update. I would strongly suggest downloading a copy of your current files if you are updating from an older version and allowing the new file to generate all new files and you will have to go in and rewrite the files.

Majority of the file changes are within the placeholders which have been changed from a %___% format to {____} as I felt it was neater within the files.

This version is also the first version where the different game versions are not all handled within the same jar. My code was starting to get messy trying to deal with all the checks needed to handle all the versions so I made the choice to split them. I have tested all versions myself what I could but if you find any issues please join the support discord and let me know so I can fix it.

Thank you for the downloads!
----------, Dec 9, 2020

Error regarding category names for 1.8 not being set: Resolved.
Error regarding withdrawing coins when inventory full: Resolved.

An update to your lang_en.yml is required. See below for change or download your current one delete from the server and allow the jar to generate the new one.
Code (Text):
Coin:
    # %AMOUNT% - The amount of coins
    Withdraw: '%PREFIX% &7You have withdrawn %AMOUNT%!'
    Deposit: '%PREFIX% &7You have deposited %AMOUNT%!'
    Not_Enough: '%PREFIX% &7You don''t have %AMOUNT% MobCoins to withdraw!'
    Zero: '%PREFIX% &7You can''t withdraw 0 Mob Coins!'
    No_Space: '%PREFIX% &7You don''t have enough space in your inventory to hold &6%AMOUNT% &7MobCoins!' #<- THIS IS THE NEW LINE
----------, May 31, 2020

A support ticket was created in my discord requesting this be updated to 1.15 so here it is.

I'm going to start leaving the version number on the uploaded jar where as previously I removed it.
----------, Apr 21, 2020

Improved the way the 1.8 side of the plugin runs to allow for the same features across versions.
----------, Mar 21, 2020

I have been working on a discord server so that it can be easier for everyone to communicate with me. It is still a WIP however you can join it here.

As per a user request I have updated the filler option for categories.

In place of the slots you can now place "all" and it will replace any empty slots with the filler. See example below


Code (Text):

AllFiller:
      Type: filler
      Slot: all
      Display:
        Material: STAINED_GLASS_PANE
        Damage: 0
        Amount: 1
        Name: ' '
        Lore: {}
 
Permissions were also updated. See improved permissions below.
Code (Text):

permissions:
  bamobcoins.user:
    description: Give the user access to user commands.
    default: op
    children:
      bamobcoins.shop: true
      bamobcoins.balance: true
      bamobcoins.help: true
      bamobcoins.withdraw: true
      bamobcoins.pay: true
  bamobcoins.shop:
    description: Allow the user access to the main shop categories.
    default: op
  bamobcoins.balance:
    description: Allow the user to check their balance.
    default: op
  bamobcoins.balance.others:
    description: Allow the user to check the balance of other players.
    default: op
  'bamobcoins.balance.*':
    description: Allow the user to check their own balance and other players.
    default: op
    children:
      bamobcoins.balance: true
      bamobcoins.balance.others: true
  bamobcoins.help:
    description: Allow the user to see the help message.
    default: op
  bamobcoins.withdraw:
    description: Allow the user to withdraw their mobcoins into a physical item.
    default: op
  bamobcoins.pay:
    description: Allow the user to pay/transfer their mobcoins to another player.
    default: op
  bamobcoins.admin:
    description: Give the user access to admin commands.
    default: op
    children:
      bamobcoins.reload: true
      bamobcoins.messages: true
      bamobcoins.add: true
      bamobcoins.remove: true
      bamobcoins.set: true
      bamobcoins.giveitem: true
  bamobcoins.reload:
    description: Allow the user to reload config file, lang file, shop file, and categories.
    default: op
  bamobcoins.messages:
    description: Allow the user to view all messages set in the lang file.
    default: op
  bamobcoins.add:
    description: Allow the user to add mobcoins to a users balance.
    default: op
  bamobcoins.remove:
    description: Allow the user to remove mobcoins from a users balance.
    default: op
  bamobcoins.set:
    description: Allow the user to set a users balance.
    default: op
  bamobcoins.giveitem:
    descritpion: Allow the user to give an item from the shop to a user.
    default: op
----------, Sep 16, 2019

Display items can now be set to glow for added effect.

Add the following into the display section of the items.
Code (Text):
Glow: true
If glow isn't found its determined to be false.

Categories can now be locked behind permissions. See below for new default config which will indicate changes.

Code (Text):

Shop:
  Menu:
    Title: '&6&lMob Coin Shop'
    Size: 27
    # Set to -1 to disable
    Coin_Display_Location: 4
    Drop_Info_Location: 22
  Back:
    Item:
      Material: PAPER
      Damage: 0
      Amount: 1
      Name: '&1&lBACK'
      Lore:
        - '&7Go back to the category selector.'
  Coin_Display:
    Item:
      Material: DOUBLE_PLANT
      Damage: 0
      Amount: 1
      Name: '&6You have %amount% mob coins.'
  Drop_Info:
    Item:
      Material: BOOK
      Damage: 0
      Amount: 1
      Name: '&6&lMobCoins can be obtained by killing the following mobs.'
    # Is placed before entity groups
    Main_Colour: '&5&l'
    # %MOB% - Will be replaced with the entity name OR custom name if one is given in lang/Mobs.yml
    # %RATE% - Will be replaced with the mob coins drop rate.
    Percent_Format: '&d&l%MOB% - &f%RATE%%'
  Categories:
    Keys:
      Display:
        Material: TRIPWIRE_HOOK
        Damage: 0
        Amount: 1
        Name: '&6&lKeys'
        Lore:
          - '&7Line one'
          - '&7Line two'
        Glow: true
      UsePermission: false #<------ NEW
      Slot: 12
      File: Keys
    Items:
      Display:
        Material: GRASS
        Damage: 0
        Amount: 1
        Name: '&6&lItems'
        Lore:
          - '&7Line 1'
          - '&7Line 2'
      UsePermission: true #<------ NEW
      # The permission can be whatever you want
      Permission: 'bamobcoin.shop.items' #<------ NEW
      Slot: 14
      File: Items
 
As always if you've translated my lang file please send it to me on discord so I can add it to the jar for others to use. Any issues send on discord. If you have feature ideas also send them on discord.
----------, Sep 13, 2019

Corrected issues with messages not being displayed or being displayed improperly.
Updated messages command.
/BAMobCoins messages <header> will allow you to test the messages you have set in your lang file. (Remember if you translate the lang file please send it to me so I can add it!)

Added new messages.
I have added a few new messages and moved some around and/or renamed. Instead of listing all the changes for you to add them yourself I would suggest either renaming your current lang file so that the plugin will create a new one with the new messages. Or downloading a copy and deleting it. Then you can just copy and paste your old ones in and edit the new ones to your liking. Messages setup was also changed. No longer is the plugin prefix forced. They are included in the messages and can be removed if you wish.

/BAMobCoins add <player> <amount> was given an alias of /BAMobCoins give <player> <amount>. Both do the same thing just gives a command alternative.

Again I did some more code work for organization and optimization. Most of you wont care about this though but its good to keep a record.
----------, Jun 26, 2019

Corrected error with drop rates display

Drop rates wouldn't work unless you had set a custom name in the new file.

Update required or the drop rates display in the shop wont work.
----------, Jun 25, 2019

Added a way for you to customize the display of the percents for the drop rates. Add the below to your Shop.yml file. (If left out it will default to what its always been)
Code (Text):

  Drop_Info:
    Item:
      Material: BOOK
      Damage: 0
      Amount: 1
      Name: '&6&lMobCoins can be obtained by killing the following mobs.'
    # Is placed before entity groups
    Main_Colour: '&5&l'
    # Is placed before entity names # <- THIS LINE CAN BE REMOVED
    Secondary_Colour: '&d&l' # <- THIS LINE CAN BE REMOVED
    # Is placed before drop precent # <- THIS LINE CAN BE REMOVED
    Third_Colour: '&f' # <- THIS LINE CAN BE REMOVED
    # %MOB% - Will be replaced with the entity name OR custom name if one is given in lang/Mobs.yml # <- ADD THIS LINE
    # %RATE% - Will be replaced with the mob coins drop rate. # <- ADD THIS LINE
    Percent_Format: '&d&l%MOB% - &f%RATE%%' # <- ADD THIS LINE
 

Added a /lang/Mobs.yml where you can create custom mob names that will be filled in when the player kills a mob and gains a mob coins, and for being displayed with the drop rate item in the shop.

I added bStats to my plugin as well See here I would appreciate it if you didn't disable it. :D

On my end I did A LOT of organization with the code itself. I moved a lot of stuff around, renamed some stuff. Added more classes for handling various things. The code should now run more efficiently as well as looks cleaner on my side.
----------, Jun 24, 2019

Fixed a minor issue when executing commands,
----------, Jun 10, 2019

Well, I completely re did the shop system.

To upgrade to the new version I suggest the following steps. Depending on the complexity of your shop items this may take a few minutes.
1. Stop the server
2. Download then entire BAMobCoins folder from your server
3. Delete the whole folder from your server
4. Upload the new jar to the server
5. Start the server
6. Replace the config.yml in the main folder, balances.yml in the data folder, and if you made changes to messages.yml rename it to lang_en.yml and replace it in lang folder.
7. Due to the nature of the update being redoing the shop you will have to re do your shop items using the new format. See the example files Keys.yml and Items.yml for assistance.

I have added a way as well for me to implement multiple language files within the plugin. If you translate the plugins messages to another language please send it to me so that I can add it to the jar.

If you have questions with the update feel free to message me on here or discord(Discord can be found on plugins main page.)
----------, Jun 9, 2019

Added the ability for the item that goes around the outside of the shop to be changed in the config.

Please add the following to your config or delete it and let it be regenerated.

Deleting the config will mean you will have to re do any edits you have previously made.
Code (Text):

  BorderItem:
    Material: STAINED_GLASS_PANE
    Meta: 10
    Name: " "
 

Code (Text):

#
#    BAMobCoins
#
####################################################
# %PLAYER% - Will be replaced with the player who clicked the item (Buying from the shop)
# [MESSAGE] - Will send a message to the player
# [BROADCAST] - Will broadcast a message to the whole server
######################################################
Options:
  Prefix: '&7[&6BAMobCoins&7]'
  BroadcastPrefix: '&7[&b&lAnnouncment&7]'
  Title: '&7[&6BAMobCoins - Shop&7]'
  CurrencyNameSingle: '&bMobCoin'
  CurrencyNamePlural: '&bMobCoins'
  BorderItem:
    Material: STAINED_GLASS_PANE
    Meta: 10
    Name: " "
Coin:
  Item: DOUBLE_PLANT
  Meta: 0
  Name: '&6&lMob Coin'
  Lore:
  - '&7Right click to deposit!'
Shop:
  DevRank: #<-- This value MUST be unique
    Item: CAKE
    Meta: 0
    Amount: 1
    Slot: 14
    DisplayName: '&b&lDev Rank!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% group add Dev'
  MobCoinRank:
    Item: CAKE
    Meta: 0
    Amount: 1
    Slot: 13
    DisplayName: '&b&lBAMobCoins Rank!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% group add BAMobCoins'
  PlayerRank:
    Item: CAKE
    Meta: 0
    Amount: 1
    Slot: 12
    DisplayName: '&b&lPlayer Rank!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% group add Player'
  20kEco:
    Item: GOLD_INGOT
    Meta: 0
    Amount: 1
    Slot: 21
    DisplayName: '&b&l20k!'
    Price: 100
    Lore: ''
    Commands:
    - 'eco give %PLAYER% 20000'
  50kEco:
    Item: GOLD_INGOT
    Meta: 0
    Amount: 1
    Slot: 22
    DisplayName: '&b&l50k!'
    Price: 100
    Lore: ''
    Commands:
    - 'eco give %PLAYER% 50000'
  100kEco:
    Item: GOLD_INGOT
    Meta: 0
    Amount: 1
    Slot: 23
    DisplayName: '&b&l100k!'
    Price: 100
    Lore: ''
    Commands:
    - 'eco give %PLAYER% 100000'
  MythicalCrate:
    Item: TRIPWIRE_HOOK
    Meta: 0
    Amount: 1
    Slot: 30
    DisplayName: '&b&lMythical Crate Key!'
    Price: 100
    Lore: ''
    Commands:
    - 'Put crate command here'
  EnchantCrate:
    Item: TRIPWIRE_HOOK
    Meta: 0
    Amount: 1
    Slot: 31
    DisplayName: '&b&lCustom Enchant Crate Key!'
    Price: 100
    Lore: ''
    Commands:
    - 'Put crate command here'
  LegendaryCrate:
    Item: TRIPWIRE_HOOK
    Meta: 0
    Amount: 1
    Slot: 32
    DisplayName: '&b&lLegendery Crate Key!'
    Price: 100
    Lore: ''
    Commands:
    - 'Put crate command here'
  FlyCommand:
    Item: FEATHER
    Meta: 0
    Amount: 1
    Slot: 39
    DisplayName: '&b&lFly!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% add essentials.fly'
    - 'pex user %PLAYER% add essentials.fly.safelogin'
  ConfidenceBoost:
    Item: GOLD_INGOT
    Meta: 0
    Amount: 1
    Slot: 40
    DisplayName: '&d&lA confidence boost'
    Price: 100
    Lore: ''
    Commands:
    # Take notice to the double single quote. This will allow it to be displayed.
    - '[MESSAGE] You''re doing great setting up this config'
  Nothing:
    Item: DRAGON_EGG
    Meta: 0
    Amount: 1
    Slot: 41
    DisplayName: '&b&lNothing!'
    Price: 100
    Lore:
    - '&bThis is the best purchase'
    - '&byou will &d&lEVER &bmake.'
    Commands:
    - '[BROADCAST] &d%PLAYER% &fhas bought nothing!'
DropChances:
  # Leave value as -1 for them to not be active
  # The value entered is the percent for the drop.
  # eg
  #   BAT: 20
  # Means theres a 20% chance a bat will give a coin when killed.
  # Passive Mobs
  BAT: -1
  SQUID: -1
  RABBIT: -1
  CHICKEN: -1
  PIG: -1
  SHEEP: -1
  COW: -1
  MUSHROOMCOW: -1
  SNOWMAN: -1
  OCELOT: -1
  HORSE: -1
  # Hostile Mobs
  ZOMBIE: -1
  SKELETON: -1
  SPIDER: -1
  CAVESPIDER: -1
  CREEPER: -1
  ENDERMAN: -1
  BLAZE: -1
  WITCH: -1
  SILVERFISH: -1
  MAGMACUBE: -1
  ENDERMITE: -1
  GUARDIAN: -1
  GHAST: -1
  SLIME: -1
  GIANT: -1
  WITHER: -1
  ENDERDRAGON: -1
  # Neutral Mobs
  VILLAGER: -1
  IRONGOLEM: -1
  PIGMAN: -1
  WOLF: -1
  # Can even set it up for players
  PLAYER: -1
 
----------, May 21, 2019

As per request I have added more options to the Messages.yml file. For this version to work you will have to delete your current Messages.yml so that a new one can be generated or add the following sections in manually.

Code (YAML):

Global
:
    Never_Joined
: '&7That player has never joined the server!'
    Whole_Number
: '&7Please enter a whole number.'
    Non_Player
: '&7You must be a player to run this command.'
    # %COMMAND% - Will be replaced by the command format
    Insufficient_Permission
: '&cInsufficient Permission! You don''t have access to %COMMAND%.' #<------ THIS LINE
    Unknown_Command
: '&cUnknown command. Type /BAMobCoins help for assistance with commands.' #<------ THIS LINE
 
Code (YAML):

Help
: #<------ THIS ENTIRE SECTION IS NEW
  # %VERSION% - Will be replaced by the plugins version
  - '&7 ------------- [ &6BAMobCoins V %VERSION% Help &7]-------------'
  - '&6/BAMobCoins &8
: &7Opens the shop GUI.'
  - '&6/BAMobCoins balance &8
: &7See your balance.'
  - '&6/BAMobCoins balance <players ign> &8
: &7See other players balance.'
  - '&6/BAMobCoins pay <players ign> <amount> &8
: &7Pay another player from your balance.'
  - '&6/BAMobCoins add <players ign> <amount> &8
: &7Adds MobCoins to a players balance.'
  - '&6/BAMobCoins set <players ign> <amount> &8
: &7Set a players balance.'
  - '&6/BAMobCoins remove <players ign> <amount> &8
: &7Removes MobCoins from a players balance.'
  - '&6/BAMobCoins withdraw <amount> &8
: &7Withdraw MobCoins from your balance into an item.'
  - '&6/BAMobCoins reload &8
: &7Reloads the plugins config files.'
  - '&6/BAMobCoins help &8
: &7Sends the help message listing commands.'
 

Below is the entire Messages.yml with indication as to where the new sections go if you need more clarification.

Code (YAML):

#
#  All messages have the prefix infront of them.
#
Messages
:
  Global
:
    Never_Joined
: '&7That player has never joined the server!'
    Whole_Number
: '&7Please enter a whole number.'
    Non_Player
: '&7You must be a player to run this command.'
    # %COMMAND% - Will be replaced by the command format
    Insufficient_Permission
: '&cInsufficient Permission! You don''t have access to %COMMAND%.'#<--------------------- NEW LINE
    Unknown_Command
: '&cUnknown command. Type /BAMobCoins help for assistance with commands.' #<--------------------- NEW LINE
  Balance
:
  # %BALANCE% - Will be replaced by the players balance.
    # %PLAYER% - Will be replaced by the players name whos balance is being checked.
    Your_Balance
: '&bYour balance is, &a %BALANCE%.'
    Other_Balance
: '&b %PLAYER%''s balance is %BALANCE%.'
  Pay
:
  # %AMOUNT% - Will be replaced by the amount sent.
    # %SENDER% - Will be replaced by the name of the player sending the coins.
    # %RECEIVER% - Will be replaced by the name of the player receiving the coins.
    Sender
: '&7You payed %RECEIVER% %AMOUNT% Mob Coins!'
    Receiver
: '&7You were paided %AMOUNT% Mob Coins by %SENDER%'
    Self
: '&7You can''t pay yourself!'
    Zero
: '&7You cannot send 0 Mob Coins to %RECEIVER%!'
    Not_Enough
: '&7You do not have enough Mob Coins!'
  Add
:
  # %AMOUNT% - Will be replaced by the amount sent.
    # %PLAYER% - Will be replaced by the players name receiving the coins.
    Admin_Message
: '&bYou have added &a %AMOUNT% &bmobcoins to %PLAYER%''s balance.'
    Player_Message
: '&bYou have received &a %AMOUNT% &bmobcoins.'
    Zero
: '&7You cannot add 0 to %PLAYER%''s balance!'
  Set
:
  # %AMOUNT% - Will be replaced by the amount sent.
    # %PLAYER% - Will be replaced by the players name receiving the coins.
    Admin_Message
: '&7You set %PLAYER%''s balance to %AMOUNT%.'
    Player_Message
: '&7Your balance has been set to %AMOUNT%.'
  Remove
:
  # %AMOUNT% - Will be replaced by the amount sent
    # %PLAYER% - Will be replaced by the players name receiving the coins.
    Admin_Message
: '&7You have removed %AMOUNT% from %PLAYER%''s balance.'
    Player_Message
: '&7 %AMOUNT% Mob Coins have been removed from your balance.'
    Zero
: '&7You cannot remove 0 Mob Coins from %PLAYER%''s balance.'
  GiveItem
:
  # %PLAYER% - Will be replaced by the players name receiving the coins.
    # %ITEM% - Will be replaced with the name of the item being given.
    Admin_Message
: '&7You gave %PLAYER% %ITEM%.'
    Player_Message
: '&7You have been given %ITEM%.'
    Unfound_Item
: '&7Could not find %ITEM%. Please ensure you are entering the correct name.'
  Shop
:
  # %ITEM% - Will be replaced by the item bought.
    # %PRICE% - Will be replaced by the price of the item.
    Bought_Item
: '&7You bought %ITEM% for %PRICE%.'
    Not_Enough
: '&7You don''t have %PRICE% to buy %ITEM%'
  Coin
:
  # %AMOUNT% - The amount of coins
    Withdraw
: '&7You have withdrawn %AMOUNT%!'
    Deposit
: '&7You have deposited %AMOUNT%!'
    Zero
: '&7You can''t withdraw 0 Mob Coins!'
  Reload
:
    Admin_Message
: '&7Config and messages &areloaded.'
  Help
: #<-------------------------------------------------------------------------------------------------- NEW SECTION
  # %VERSION% - Will be replaced by the plugins version
  - '&7 ------------- [ &6BAMobCoins V %VERSION% Help &7]-------------'
  - '&6/BAMobCoins &8
: &7Opens the shop GUI.'
  - '&6/BAMobCoins balance &8
: &7See your balance.'
  - '&6/BAMobCoins balance <players ign> &8
: &7See other players balance.'
  - '&6/BAMobCoins pay <players ign> <amount> &8
: &7Pay another player from your balance.'
  - '&6/BAMobCoins add <players ign> <amount> &8
: &7Adds MobCoins to a players balance.'
  - '&6/BAMobCoins set <players ign> <amount> &8
: &7Set a players balance.'
  - '&6/BAMobCoins remove <players ign> <amount> &8
: &7Removes MobCoins from a players balance.'
  - '&6/BAMobCoins withdraw <amount> &8
: &7Withdraw MobCoins from your balance into an item.'
  - '&6/BAMobCoins reload &8
: &7Reloads the plugins config files.'
  - '&6/BAMobCoins help &8
: &7Sends the help message listing commands.'
 
----------, Apr 19, 2019

You can now withdraw your mobcoins using the following command which will give you an item form of the mob coin. The coin name, lore, and item is customizable.

/bamobcoins withdraw <amount>

You will either have to delete your config file or add the following to it. Placed in the location shown in the whole config spoiler

Code (Text):

Coin:
  Item: DOUBLE_PLANT
  Meta: 0
  Name: '&6&lMob Coin'
  Lore:
  - '&7Right click to deposit!'
 

Code (Text):

#
#    BAMobCoins
#
####################################################
# %PLAYER% - Will be replaced with the player who clicked the item (Buying from the shop)
# [MESSAGE] - Will send a message to the player
# [BROADCAST] - Will broadcast a message to the whole server
######################################################
Options:
  Prefix: '&7[&6BAMobCoins&7]'
  BroadcastPrefix: '&7[&b&lAnnouncment&7]'
  Title: '&7[&6BAMobCoins - Shop&7]'
  CurrencyNameSingle: '&bMobCoin'
  CurrencyNamePlural: '&bMobCoins'
Coin:    # <- THIS IS WHERE THE NEW SECTION STARTS
  Item: DOUBLE_PLANT
  Meta: 0
  Name: '&6&lMob Coin'
  Lore:
  - '&7Right click to deposit!'
Shop:
  DevRank: #<-- This value MUST be unique
    Item: CAKE
    Meta: 0
    Amount: 1
    Slot: 14
    DisplayName: '&b&lDev Rank!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% group add Dev'
  MobCoinRank:
    Item: CAKE
    Meta: 0
    Amount: 1
    Slot: 13
    DisplayName: '&b&lBAMobCoins Rank!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% group add BAMobCoins'
  PlayerRank:
    Item: CAKE
    Meta: 0
    Amount: 1
    Slot: 12
    DisplayName: '&b&lPlayer Rank!'
    Price: 100
    Lore: ''
    Commands:
    - 'pex user %PLAYER% group add Player'
[​IMG]
----------, Apr 18, 2019

Improved update checker that was having issues with sending the update available message on player join.

Some code clean up that deals with the command handling but you don't care about that.
----------, Mar 28, 2019

I have added a new command to allow you see the output of all your set messages in game at once.

In doing this I discovered a few messages that weren't being displayed properly but that has now been fixed.

Getting a fresh version of the Messages.yml file is required to fix the issue.

Steps to repair:
1. Download a copy of your old config.
2. Delete the old config from the server.
3. Reload the plugin.
4. Copy and paste the messages you have set over to the new config.
----------, Mar 28, 2019

I have improved the reload command to include and re-make the messages.yml should it be deleted.


Also some code clean up but you don't care about that.
----------, Mar 27, 2019

As per a user request I have added a Messages.yml file which will allow you to customize the messages being sent for various sections. If you encounter a message that is incorrect displayed or a message that isn't able to be changed let me know.
----------, Mar 26, 2019

As per user request I have added a new command.
/bamobcoins giveItem <player ign> <item Id>

This command will run the commands associated with the item id specified for the player as if they purchased it from the shop.

To understand the item id I will show the new config layout.
Shop:
'0':
Item: CAKE
Meta: 0
Amount: 1
Slot: 14
DisplayName: '&b&lDev Rank!'
Price: 100
Lore: ''
Commands:
- 'pex user %PLAYER% group add Dev'

Shop:
DevRank: #<-- This value MUST be unique. This is also the only thing that changed.
Item: CAKE
Meta: 0
Amount: 1
Slot: 14
DisplayName: '&b&lDev Rank!'
Price: 100
Lore: ''
Commands:
- 'pex user %PLAYER% group add Dev'

While previously the different items were listed in numerical order. They can now be listed by names and the names MUST be unique. Otherwise things break. :(

While the change is simple it allows for a more meaning full argument within the giveItem command. You don't need to restart your config. The old format will still work. The names will just not have as much meaning behind them. But you can simply change them.
----------, Mar 26, 2019

As per user request I added /mobcoins and /mc as an alias for the command.

I have also added an update checker to notify you if a new version has been posted. If you are on a version prior to this one you will not receive the alert for the update.
----------, Mar 21, 2019

When setting up the shop you can now place [BROADCAST] at the beginning to have it broadcast a message when the item is purchased.

All placeholders:
- %PLAYER% - Will be replaced with the player who clicked the item (Buying from the shop)
- [MESSAGE] - Will send a message to the player
- [BROADCAST] - Will broadcast a message to the whole server

Some minor code cleanup was also done but you don't care about that.
----------, Mar 21, 2019

Resource Information
Author:
----------
Total Downloads: 2,597
First Release: Mar 19, 2019
Last Update: Dec 9, 2020
Category: ---------------
All-Time Rating:
12 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings