Give Display: false #Give display item to true does the trick... sorry... it was confusing and iwas not expecting the example to mislead.
I am unsure i am making a mistake while doing the shop setup but when i click on an item the shards get deducted, the command associated with the item runs (A "say" for testing purposes) but the item is not sent to the inventory.
There are no errors shown in the console or other pointers to troubleshoot.
All help will be appreciated, and maybe this will help someone else in the future...
Another question: what is the data field for ?
Thanks in advance !
I am attaching the files i am using as this is probably a mistake from my side but i have been unable to figure it out on my own:
categories.yml
#This is the main menu when a player executes /shard, It will open a gui where they can select which shop to open.
Menu Settings:
Title: "&rtienda de suministros"
Size: 2 #In rows
Filler:
Material: STAINED_GLASS_PANE
Data: 14
Slots: [0, 1, 3, 5, 7, 8]
Shops:
Madera:
Shop: madera #This should be the same as the config name (excluding .yml)
Slot: 2 #Slots start from 0
Name: "&bTienda de madera!"
Material: OAK_LOG
Data: 0
Lore:
- '&7Haz click para ir a la tienda'
Ferreteria:
Shop: herramientas #This should be the same as the config name (excluding .yml)
Slot: 4 #Slots start from 0
Name: "&bTienda de herramientas!"
Material: ANVIL
Data: 0
Lore:
- '&7Haz click para ir a la tienda'
Example:
Shop: example #This should be the same as the config name (excluding .yml)
Slot: 6 #Slots start from 0
Name: "&bTienda de Cosas!"
Material: DIAMOND_SWORD
Data: 0
Lore:
- '&7Haz click para ir a la tienda'
/shops/madera.yml
#Example Category
#Shop names should be lowerCamelCase only, don't do stuff like WEAPON_SHOP.
Menu Settings:
Title: "&rTienda de Madera"
Size: 1 #In rows
Filler:
Material: STAINED_GLASS_PANE
Data: 14
Slots: [0, 1, 3, 5, 7, 8]
Menu Items:
troncoroble:
Display Item:
Material: OAK_LOG
Data: 0
Name: "&6&lMadera de Roble Ecologica"
Lore:
- '&c&oDensa y resistente a la humedad!'
Settings:
Slot: 2
Give Display: false #Give display item
Price: 100 #Shards
Commands:
- 'say %player% Roble'
troncoabedul:
Display Item:
Material: DARK_OAK_LOG
Data: 0
Name: "&6&lMadera de Abedul Ecologica"
Lore:
- '&c&oLigera y resistente!'
Settings:
Slot: 4
Give Display: false #Give display item
Price: 100 #Shards
Commands:
- 'say %player% Abedul'
palito:
Display Item:
Material: STICK
Data: 0
Name: "&6&lPalitos Ecologicos"
Lore:
- '&c&oGeniales para fabricar herramientas!'
Settings:
Slot: 6
Give Display: false #Give display item
Price: 100 #Shards
Commands:
- 'say %player% Palito'
/shops/herramientas.yml
#Example Category
#Shop names should be lowerCamelCase only, don't do stuff like WEAPON_SHOP.
Menu Settings:
Title: "&rTienda de Herramientas"
Size: 1 #In rows
Filler:
Material: STAINED_GLASS_PANE
Data: 14
Slots: [0, 1, 2, 3, 5, 6, 7, 8]
Menu Items:
DestroyerSword:
Display Item:
Material: DIAMOND_SWORD
Data: 0
Name: "&6&lDestroyer Sword"
Lore:
- '&c&oThe legendary destroying sword!'
Settings:
Slot: 4
Give Display: false #Give display item
Price: 1000 #Shards
Commands:
# - 'kill %player%'
/shops/example.yml
#Example Category
#Shop names should be lowerCamelCase only, don't do stuff like WEAPON_SHOP.
Menu Settings:
Title: "&rTienda de Espada unica"
Size: 1 #In rows
Filler:
Material: STAINED_GLASS_PANE
Data: 14
Slots: [0, 1, 2, 3, 5, 6, 7, 8]
Menu Items:
DestroyerSword:
Display Item:
Material: DIAMOND_SWORD
Data: 0
Name: "&6&lDestroyer Sword"
Lore:
- '&c&oThe legendary destroying sword!'
Settings:
Slot: 4
Give Display: false #Give display item
Price: 1000 #Shards
Commands:
# - 'kill %player%'
On other matters, only ops can invoque the `/shard' command normal users get a dialog telling them they cannot use commands, is there a way to overcome that ?
Hi, thanks for the plugin.
EDIT:
Give Display: false #Give display item
to true does the trick... sorry... it was confusing and iwas not expecting the example to mislead.I am unsure i am making a mistake while doing the shop setup but when i click on an item the shards get deducted, the command associated with the item runs (A "say" for testing purposes) but the item is not sent to the inventory.
There are no errors shown in the console or other pointers to troubleshoot.
All help will be appreciated, and maybe this will help someone else in the future...
Another question: what is the
data
field for ?Thanks in advance !
I am attaching the files i am using as this is probably a mistake from my side but i have been unable to figure it out on my own:
categories.yml
/shops/madera.yml
/shops/herramientas.yml
/shops/example.yml