Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # MysticCrates v0.1 - Callum McCloskey
- # Syntax Explanation
- #
- # <console> - anything that follows this tag will be executed as command by console.
- # <message> - anything that follows this tag will messaged to the player involved with the event.
- # <prefix> - returns the set prefix from the settings of this configuration file.
- # <player> - returns the name of the player involved with the event.
- # <crate> - returns the name of the crate involved with the event. (Can only be used in a crate's .yml file)
- # <close> - specific tag to the crate shop which will close the shop.
- # General plugin settings.
- settings:
- prefix: "&5MysticCrates &8|"
- # User Storage - Where should player data be stored?
- storage:
- database:
- enabled: false
- ip: "ip"
- port: "port"
- name: "database-name"
- username: "username"
- password: "password"
- flatfile:
- enabled: true
- # Holograms displayed above crate blocks showing relevant information. (Requries HolographicDisplays)
- crate-holograms:
- enabled: false
- example:
- - "&8> &5Example Crate &8<"
- - "&7&oRight-click to preview rewards!"
- - "&7&oLeft-click to use key!"
- # A shop that can be used by players to purchase crates for in-game currency. (Requires Vault)
- # Whenever the /crate shop command is executed if this shop is enabled it will open the page with the name 'index'.
- # If you do not have an index page, the shop will not work!
- crate-shop:
- enabled: true
- pages:
- index:
- title: "&5Crate Shop"
- size: 27
- items:
- 1:
- item:
- type: "TRIPWIRE_HOOK"
- name: "&5Keys"
- lore:
- - "&7Click to open the keys category!"
- glow: true
- slots: "14"
- open-page: "keys"
- 2:
- item:
- type: "RED_STAINED_GLASS_PANE"
- name: " "
- slots: "1,2,3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27"
- keys:
- title: "&5Keys"
- size: 9
- items:
- 1:
- item:
- type: "TRIPWIRE_HOOK"
- name: "&5Example Crate Key"
- lore:
- - "&7Win anything from $1k - $250k!"
- - ""
- - "&7Right-click to purchase a this key for &a$&f10,000"
- glow: true
- slots: "5"
- price: 10000
- on-click:
- success:
- - "<console> crate key physical <player> example 1"
- - "<message> <prefix> &7You have purchased an &fExample &7key for &a$10,000&7!"
- failure:
- - "<close>"
- - "<message> <prefix> &7You can't afford this key!"
- 2:
- item:
- type: "RED_STAINED_GLASS_PANE"
- name: "&cBack"
- slots: "1,2,3,4,6,7,8,9"
- open-page: "index"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement