Config has now changed to:
name: '&6Example &7Opener'
- '&7Place this to &6allow players'
- '&7to start using their &6example'
- '&6Example &7Opener'
- '&7Right click to use!'
name: '&6Example &7Key'
- '&7Use this &6crate key &7to unlock'
- '&7awesome &6perks &7and &6boosts!'
- '&7Head over to &6/warp crates'
- '&7to use the &6key&7!'
# this can have any name, and you can duplicate it to make more things that players can win.
command: /litecrates give example %player% 1
command: /litecrates give example %player% 5
command: /litecrates give example %player% 10
Added a messages.yml file where you can customise all messages
NEXT UPDATE You should expect gui customisation features, a plugin reload command, commands and guis to create crates and keys.Code (YAML):messages:
usage: '&cUsage: /litecrates give <type> [opener] <player> <amount>'
invalid-player: '&cThat is not a valid player &e(%target%)'
error: '&cAn error has occurred - contact an administrator. Your key has been returned.'
key-given: '&aYou have given &e%target%&a the &e%crate%&a crate'
error: '&cThere has been an error giving that crate &e(%crate%)'
invalid-crate: '&cThat crate type does not exist &e(%crate%)'
opening: '&aOpening crate...'
invalid-key: '&cYou do not have the correct key to use this &e(%crate%)'
opener-given: '&aYou have given &e%target%&a the &e%crate%&a opener'
error: '&cThere has been an error giving that crate opener &e(%crate%)'
invalid-opener: '&cThat crate opener does not exist &e(%crate%)'
already-placed: '&cThere is already a crate of that type placed &e(%crate%)'
placed: '&aYou have successfully placed that crate &e(%crate%)'
removed: '&cThat crate opener has been removed &e(%crate%)'
BETA This plugin is still in beta so expect frequent updates with many features being added. Contact me on spigot dms if you have any questions.