Requires HolographicDisplays + ProtocolLib
View our GitBooks here: Crates
Code:
Settings:
Name: "Default"
Virtual-Display-Enabed: true #Does it appear in the GUI?
Virtual-Display-Amount: -1 #Use -1 to display player keys
Preview-Enabled: true
Selector-Enabled: true
Reroll-Enabled: true
Spin-Type: "Horizontal"
Location-Interact-Settings:
Left-Click-Preview: true
Right-Click-Physical-Crate: true
Right-Click-Selector: true
Crate-Placer:
Material: "ENDER_CHEST"
Durability: 0
Name: "&6&l[!] &6Default &eCrate Placer &8(&7Place&8)"
Lore:
- '&7&o** Place this to add a crate location. **'
Hologram-Settings:
Enabled: true
Height-Difference: 3
Lines:
- '&2&l[!] &aDefault Crate &8&l[&a☆&7☆☆☆☆&8&l]'
- ''
- '%item-display%'
- '%item%'
- ''
- '&2&l* &aKeys: &f%keys%'
- ''
Physical-Crate:
Glow: true
Material: "INK_SACK"
Durability: 6
Name: "&3&l[&b&l!&3&l] &bDefault Crate Key"
Lore:
- ' '
- '&bInformation'
- '&b&l❚ &7Crate: &fDefault'
- '&b&l❚ &7Usage: &fClicking on the crate'
- ' '
- '&7&o(( Bring me to the &f&odefault&7&o crate to use me! ))'
Virtual-Crate:
Glow: false
Material: "INK_SACK"
Durability: 6
Name: "&3&l[&b&l!&3&l] &bDefault Crate"
Lore:
- ' '
- '&bInformation'
- '&b&l❚ &7Crate: &fDefault'
- '&b&l❚ &7Keys: &f%keys%x'
- '&b&l❚ &7Preview: &fRight-Click'
- '&b&l❚ &7Open: &fLeft-Click'
- ' '
- '&7&o(( Click me to &f&oopen&7&o this crate! ))'
Virtual-Crate-Filler:
Glow: false
Material: "BARRIER"
Durability: 0
Name: "&c&lNOT ENOUGH KEYS"
Lore:
- '&7&o** You dont have enough <crate> crate keys. **'
Spinning-Settings:
Title: "Spinning <crate>"
Type: "HORIZONTAL"
Speed:
Ending-Start: 43 #Crate spins this amount before the ending will start.
Ended-Start: 55 #When the crate will end completely.
Border:
Enabled: true
Display-Item:
Material: STAINED_GLASS_PANE
Durability:
- 7
- 15
Name: " "
Lore:
- " "
Reward-Display:
Enabled: true
Display-Item:
Material: "BEACON"
Name: "&6&lYOUR &e&lREWARD"
Lore:
- " "
Sounds:
"SPIN-BEGIN": "BLOCK_CHEST_OPEN"
"SPIN-SLOT": "BLOCK_NOTE_PLING"
"SPIN-ENDING": "ENTITY_PLAYER_LEVELUP"
"SPIN-ENDED": "BLOCK_CHEST_CLOSE"
Preview-Inventory:
Settings:
Title: "Previewing <crate>"
Size: 54
Scrollable-Slots:
- 0-44
Items:
"Border":
Display-Item:
Material: STAINED_GLASS_PANE
Durability: 15
Name: " "
Lore:
- " "
Slots:
- 45-53
Preview-Icons:
Previous-Page-Icon:
Enabled: true
Slot: 48
Previous-Page-Item:
Material: ARROW
Durability: 0
Name: "&4&l[!] &4&l<- PREVIOUS &c&lPAGE"
Lore:
- '&7&o"View the previous page of rewards."'
First-Page-Item:
Material: BARRIER
Durability: 0
Name: "&c&lALREADY ON FIRST PAGE"
Lore:
- '&7&o** You are already on the first page. **'
Next-Page-Icon:
Enabled: true
Slot: 50
Next-Page-Item:
Material: ARROW
Durability: 0
Name: "&2&l[!] &2&lNEXT &a&lPAGE ->"
Lore:
- '&7&o"View the next page of rewards."'
Not-Enough-Pages:
Material: BARRIER
Durability: 0
Name: "&c&lALREADY ON LAST PAGE"
Lore:
- '&7&o** You are already on the last page. **'
Preview-Item-Filler:
Material: STAINED_GLASS_PANE
Durability: 7
Name: " "
Lore:
- " "
Messages:
"INVALID-KEY":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou need to be holding a Default key for this crate."
"CRATE-STARTED":
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have started opening the &6<crate> &ecrate."
"NOT-ENOUGH-KEYS":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou dont have enough keys to open the &4<crate> &ccrate."
"PREVIEW-OPENED":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have opened the preview GUI."
"ALREADY-FIRST-PAGE-PREVIEW":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou are already on the first page of this preview."
"ALREADY-LAST-PAGE-PREVIEW":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou are already on the last page of this preview."
"ACCESSED-PREVIOUS-PAGE-PREVIEW":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&2&l[!] &aYou are now viewing the previous page of preview."
"ACCESSED-NEXT-PAGE-PREVIEW":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&2&l[!] &aYou are now viewing the next page of preview."
Rewards:
"Money":
Settings:
Enabled: true
Chance: 10
Display-Item:
Material: "EMERALD"
Durability: 0
Name: "&2&l[!] &a$10,000"
Lore:
- ' &2&l* &7Uncommon Reward Type'
Commands:
- 'eco give %player% 10000'
Code:
Settings:
Title: "Want to reroll?"
Size: 45
Accept-Rewards-Item:
Slot: 12
Material: "STAINED_GLASS_PANE"
Durability: 5
Name: "&2&l[!] &aAccept your rewards &7(Click)"
Lore:
- "&7"
- "&aReroll Information:"
- "&a┃ &7Action: &fAccept Rewards"
- "&a┃ &7Requirements: &fNone"
- "&7"
Deny-Rewards-Item:
Slot: 14
Material: "STAINED_GLASS_PANE"
Durability: 14
Name: "&4&l[!] &cReroll your rewards &7(Click)"
Lore:
- "&7"
- "&cReroll Information:"
- "&c┃ &7Action: &fReroll Rewards"
- "&c┃ &7Requirements: &fCrate Reroll Perk"
- "&7"
Reward-Display-Slots:
- "28-34"
Reward-Display-Filler:
Material: "STAINED_GLASS_PANE"
Durability: 7
Name: " "
Lore:
- " "
Items:
"Border":
Settings:
Enabled: true
Slots:
- 0-43
Display-Item:
Material: "STAINED_GLASS_PANE"
Durability:
- 15
Name: " "
Lore:
- " "
"Information":
Settings:
Enabled: true
Slots:
- 44
Display-Item:
Material: "BOOK"
Durability: 0
Name: "&3&l[!] &bCrates Information"
Lore:
- " "
- "&bInformation:"
- "&7&oCrates are ingame system that allow you to obtain"
- "&7&orandom rewards, with each crate giving different"
- "&7&orewards."
- "&7"
Messages:
"NO-PERMISSION":
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou do not have the &nrequired&c permission for this."
"REWARDS-DENIED":
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&2&l[!] &aYou have chosen to &nreroll&a your crate winnings."
"REWARDS-ACCEPTED":
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&2&l[!] &aYou have chosen to &naccept&a your crate winnings."
Code:
Settings:
Title: "Crate Selector"
Size: 27
Items:
"Border":
Settings:
Enabled: true
Slots:
- 0-26
Display-Item:
Material: "STAINED_GLASS_PANE"
Durability: 15
Name: " "
Lore:
- " "
"Information":
Settings:
Enabled: true
Slots:
- 26
Display-Item:
Material: "BOOK"
Durability: 0
Name: "&6&l[!] &eCrates Information"
Lore:
- " "
Crate-Options:
"Default":
Enabled: true
Slot: 13
Settings-Access:
Enabled: true
Slot: 25
Display-Item:
Material: "ITEM_FRAME"
Durability: 0
Name: "&6&l[!] &eAccess Settings &8(&7Click&8)"
Lore:
- '&7&o** Click this to access the settings inventory. **'
Code:
Settings:
Title: "Crate Settings"
Size: 27
Items:
"Border":
Settings:
Enabled: true
Slots:
- 0-26
Display-Item:
Material: "STAINED_GLASS_PANE"
Durability: 15
Name: " "
Lore:
- " "
Toggle-Animation:
Slot: 13
Enabled: true
Enabled-Item:
Material: CHEST
Data: 0
Name: "&6&l[!] &eToggle Animation &7(Click)"
Lore:
- '&7&o"Click this item to toggle crate animations."'
- ' '
- ' &6 &l * &e[Status] &aAnimations Enabled'
- ' '
- ' &7&o(( &f&oTip: &7&oClick this to disable animations. ))'
- ' '
Disabled-Item:
Material: ENDER_CHEST
Data: 0
Name: "&6&l[!] &eToggle Animation &7(Click)"
Lore:
- '&7&o"Click this item to toggle crate animations."'
- ' '
- ' &6 &l * &e[Status] &cAnimations Disabled'
- ' '
- ' &7&o(( &f&oTip: &7&oClick this to enable animations. ))'
- ' '
Code:
Settings:
Title: "<crate> Slot Picker"
Pick-Slot:
Material: "BEACON"
Durability: 0
Name: "&3&l[!] &bPick a slot..."
Lore:
- "&7&oClick this to select this Crate Slot..."
Slot-Picked:
Material: "ENDER_CHEST"
Durability: 0
Name: "&2&l[!] &aSlot Selected!"
Lore:
- "&7&oYou have selected this Crate Slot!"
Border:
Enabled: true
Display-Item:
Material: "STAINED_GLASS_PANE"
Durability:
- 7
- 15
Name: " "
Lore:
- " "
Code:
NO-PERMISSION:
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou dont have permission to &nexecute&c this."
INVALID-CRATE:
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou have entered an invalid crate key."
INVALID-AMOUNT:
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou need to enter a valid amount."
INVALID-PLAYER:
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou need to enter a online player."
NOT-PLAYER:
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&4&l[!] &cYou have to be a player to use this command."
HELP-MESSAGE:
Sound:
Enabled: true
Value: "ENTITY_BAT_TAKEOFF"
Message:
Enabled: true
Value:
- "&6&l[!] &eCloud&6Crates &8[&7Admin&8]"
- "&7&oYou are viewing the admin help section."
- " "
- "&e&lMember &6&lCommands"
- " &8» &e/crates &fopen &8» &7Opens the crates menu."
- " "
- "&e&lAdmin &6&lCommands"
- " &8» &e/crates &fhelp &8» &7Brings up the Crates commands."
- " &8» &e/crates &freload &8» &7Reload the configuration."
- " &8» &e/crates &fpreview [crate] &8» &7Allows you to preview a crate's loot."
- " &8» &e/crates &6place [crate] &8» &7Places a crate block for you."
- " &8» &e/crates &6give &f<player> <crate> [amount] &8» &7Give a player virtual crates."
- " &8» &e/crates &6givephys &f<player> <crate> [amount] &8» &7Give a player physical crates."
- " &8» &e/crates &6giveall &f<crate> [amount] &8» &7Give all players virtual crates."
- " &8» &e/crates &6giveallphys &f<crate> [amount] &8» &7Give all players physical crates."
- " "
PLUGIN-RELOADED:
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou are reloading the configuration files."
CRATE-PLACER-RECEIVED:
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have received the crate placer for the &6%crate% &ecrate."
KEY-ALL-SENT:
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have given all players &7%amount%x &6%crate% &ecrate keys."
CRATE-PLACED:
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have created a new crate location."
LOCATION-REMOVED:
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have removed one of the crate locations."
CRATE-RECEIVED:
Sound:
Enabled: true
Value: "ENTITY_PLAYER_LEVELUP"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have received &7%amount%x &6%crate% &ecrate keys."
MAIN-GUI-OPENED:
Sound:
Enabled: true
Value: "BLOCK_CHEST_OPEN"
Message:
Enabled: true
Value:
- "&6&l[!] &eYou have opened the selector gui."
Code:
Settings:
Debug-Mode: true
Auto-Save-Interval: 60 #in seconds
Command-Settings:
Permission: "cloudcrates.admin"
Command: "crates"
Description: "The main command for crates."
Aliases:
- "crates"
- "crate"
- "cloudcrate"
- "cloudcrates"
Loading-Settings:
Crate-Load-Message: "&f[CloudCrates] &7Loaded the &f<crate> &fcrate."
Reward-Load-Message: "&f[CloudCrates | <crate> ] &7Loaded the &f<reward> &freward."
Crate-Placer:
Material: "ENDER_CHEST"
Durability: 0
Name: "&6&l[!] &6Regular &eCrate Placer &8(&7Place&8)"
Lore:
- '&7&o** Place this to add a crate location. **'