Added Categories: - Your config will stay the same if you don't want to use categories!
- Categories Will Open a Separate GUI for another List of Purchase Options
Using Categories:
Code (YAML):
ranks:
title: "Purchase Ranks" icon: Diamond_Helmet
isCategory: true
# Required for Categories, otherwise not needed lore: -
"Unlock a New Rank!"
# Add this Section for Categories items: # This will work the same way as if you were to make a regular purchase instead of a category coal_rank:
title: 'Purchase Coal Rank'
icon: Coal
price: 1000
commands: - 'vperms user
%player% group add coal' - 'broadcast
%player% has purchased the Coal Rank!' lore: - 'Unlock the Coal Rank'
iron_rank:
title: 'Purchase Iron Rank'
icon: Iron_Ingot
price: 2000
commands: - 'vperms user
%player% group add iron' - 'broadcast
%player% has purchased the Iron Rank!' lore: - 'Unlock the Iron Rank'