Config shop: Difference between revisions

From MBedwars
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
Add an enchantment to the icon of this item
Add an enchantment to the icon of this item
=== buy-group: <group name> <level of item> ===
=== buy-group: <group name> <level of item> ===
Adds this item to a group.<br />
The buy-group is a system which allows you to buy items in a tier.<br>
Players are only able to buy items in that group if the item has a higher or the same level than the bought item before.<br />
Every team starts in every tier at level 0.<br>
Every player starts at level 0.<br />
If someone is now buying something in e.g. tier 2, then he won't be able to buy the item from tier 1 from that same buy-group.<br>
Each item can be only added to one group.
Example config: https://pastebin.com/JubNNHE0<br>
<br>
'''Notes:'''
* Items in buy-group 0 won't be visibile in the shop. You may want to use this feature instead of 'giveitems-on-*' of config.cm2
* It's recommended to also it together with [[Config_shop#keep-on-death:_.3Ctrue.2Ffalse.3E|keep-on-death]] since it's not possible to repurchase the current tier
* Because it's not possible to repurchase the current tier it doesn't make sense to use together with [[Config_shop#one-time-purchase:_.3Ctrue.2Ffalse.3E|one-time-purchase]]
* Make sure that you are incrementing each step by 1, otherwise it won't be purchaseable
=== force-slot: <slot> ===
=== force-slot: <slot> ===
Item in the GUI will be moved to that slot (starting at 0) during post process
Item in the GUI will be moved to that slot (starting at 0) during post process

Revision as of 16:56, 6 September 2019

Page configurations

icon: <material>:<id>

Set the icon of the page

force-slot: <slot>

Item in the GUI will be moved to that slot (starting at 0) during post process

Item Configurations

caps-multiply: <number>

Set the amount that will be multiplied if you're holding shift and buying it

keep-on-death: <true/false>

Players will keep this item when they die

one-time-purchase: <true/false>

Players are only able to buy this item once in the whole round

caps-multiply: <number>

The amount of times when pressing shift the item should get bought

icon: <material>

The icon in the GUI

icon-enchantment: <enchantment>:<level>

Add an enchantment to the icon of this item

buy-group: <group name> <level of item>

The buy-group is a system which allows you to buy items in a tier.
Every team starts in every tier at level 0.
If someone is now buying something in e.g. tier 2, then he won't be able to buy the item from tier 1 from that same buy-group.
Example config: https://pastebin.com/JubNNHE0

Notes:

  • Items in buy-group 0 won't be visibile in the shop. You may want to use this feature instead of 'giveitems-on-*' of config.cm2
  • It's recommended to also it together with keep-on-death since it's not possible to repurchase the current tier
  • Because it's not possible to repurchase the current tier it doesn't make sense to use together with one-time-purchase
  • Make sure that you are incrementing each step by 1, otherwise it won't be purchaseable

force-slot: <slot>

Item in the GUI will be moved to that slot (starting at 0) during post process

Item > Item Product Configurations

material: <material> (Required)

Set the material of this item

amount: <number>

Set the amount of items you'll get if you buy this item
The default is 1

enchantment: <enchantment>:<level>

Add an enchantment to this item

Item > Special Product Configurations

type: <special id> (required)

Set the type of this product
List of special items

amount: <number>

Set the amount of items you'll get if you buy this item
The default is 1

Item > Price Configurations

spawner: <spawner> (required)

Set the itemspawner that is required to buy this item

amount: <number>

Set the amount of required itemspawners
The default is 1

amount-perm

Players with the permission 'mbedwars.shopcustomprice' will see this price instead of price-amount