/keys
Show your crate keys, or hand keys out as an admin
/keys/keys help
Crates that players open with keys. Each crate either lets the player pick one reward or spins a reel and hands out a random one.
/crates reload/crates setloc summer/crates setmode example roll/keys give Alex vote 3/crates keyall legendary 1/crates log/crates stats/crates animation vip roulette/crates preview vip animation/crates reload/crates reloadCan a player look inside a crate without a key?
Yes by default. open-without-key: true in settings.yml lets anyone see the rewards, and a key is only needed to pick or roll. Set it to false to show the no-keys message instead.
Does a player lose the key if something goes wrong?
No. If the economy refuses a money reward or the payout fails, the key is returned and the player gets a message.
Can two crates use the same key?
Yes. Give both crates the same key-id and one kind of key opens both.
Why does the open-many button say the crate opens one key at a time?
Pick crates and crates with a cooldown cannot open several keys at once. Only roll crates without a cooldown can.
Does an animation make the reward unsafe?
No. The reward is chosen and paid before the animation starts. If the player closes the menu, quits or the server restarts, the reward is still theirs and is never given twice.
What happens when many players open crates at once?
animation.max-concurrent in settings.yml caps how many animations play at the same time. A player who opens a crate while that many are running gets the reward shown at once, with no animation. Admin previews are counted apart, up to animation.max-previews.
Which crates can have an animation?
Roll crates. Pick crates have no animation. Crates with no animation open as before, and a crate with a gui: block and no animation plays the roulette.
Menus and messages come from the default DCrates files. Run a command, click an example, or pick a menu.
No menu open. Run a command below or pick a menu from the list.
<name> you must fill in[name] optionalword typed as shown
Show your crate keys, or hand keys out as an admin
/keys/keys helpalso /crate
Crate overview, and the admin side - reload, edit, locations, keyall, setmode, log, hologram
/crates/crates helpWho has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| dcrates.admin | Operators | Reload and edit crates, manage crate blocks, hand out keys, break crate blocks |
| dcrates.use | Everyone | Open crates at all. Individual crates can require their own permission. |
plugins/DCrates/settings.yml
General settings for all crates: how players open them, sounds, menu texts and chat messages. Each crate itself (rewards, keys, locations) is a file in the crates/ folder. Edit, then run /crates reload.
ENLanguage of the plugin's texts: EN, FR or ES.
'�B5FF&lCRATE &8| 'Text added in front of every chat message from this plugin. Use '' for no prefix.
--- Clicking crate blocks --- What happens when a player clicks the block that a crate is placed on (chest, barrel...).
trueDoes a right-click on the crate block open the crate menu? true = yes, false = no.
trueDoes a left-click on the crate block open the crate menu? true = yes, false = no.
trueCan a player look inside a crate when they have no key?
true = yes. Anyone can open the menu to see the rewards. A key is only needed to actually pick one. false = no. A player with too few keys gets the "no-keys" message instead of the menu.
trueStop crate blocks from being broken, or blown up by explosions and pistons?
true = protected. false = anyone who can break blocks there can destroy the crate.
'dcrates.admin'Players with this permission may still break crate blocks. Give it to your admins.
--- Opening a crate --- Rules that apply when a player tries to use a key.
'dcrates.use'Players need this permission to open any crate. Leave empty ('') so everybody can.
trueRefuse the open when the player's inventory is too full for the reward?
true = refuse, and the key is not spent. The player sees the "inventory-full" message. false = do not check.
1How many empty inventory slots a player needs. Only used when require-free-slot is true.
trueBefore a key is spent, check that every console command in the reward can run?
true = a reward with a mistyped command or a missing plugin is refused, so players do not lose a key for nothing. false = no check.
0Seconds a player must wait before opening the same crate again. Example: 3600 = 1 hour. 0 = no wait. A crate file can set its own wait with cooldown-seconds. A crate that says "default" uses this number.
--- /keys command ---
trueShould /keys leave out crates that are switched off (enabled: false in the crate file)?
--- /crates overview menu --- The menu that lists every crate. Players open it with /crates.
'&8ᴄʀᴀᴛᴇꜱ'The menu's title. You can use: %page% %pages%
trueKeep an empty edge around the crates?
true = crates are centred with an empty border. false = crates fill the whole menu.
''Item used to fill the empty slots, written as a Minecraft item name. Example: GRAY_STAINED_GLASS_PANE Leave empty ('') for no item (the slots look empty).
The page buttons, shown when there are more crates than fit on one page. You can use in names: %page% (this page) %pages% (how many pages)
ARROW'<#00B5FF>Previous Page</#72D6FF> &8(%page%/%pages%)'ARROW'<#00B5FF>Next Page</#72D6FF> &8(%page%/%pages%)'Text lines under each crate's icon. You can use: %crate% %color% %keys% (keys the player has) %key_name% %key_cost% %rewards%
--- Announcements ---
trueRewards in a crate file can have a broadcast text that tells the whole server who won.
true = those announcements are sent. false = none are sent, without editing any crate file.
--- Lid animation ---
trueOpen the lid of the crate block (chest, barrel, shulker box) while a player looks at the menu? A single crate can also turn this off with lid-animation: false in its file.
--- Free keys on a timer --- Gives keys to every online player every so often. The DKeyAll plugin does the same with more options.
falsetrue = give keys on the timer below. false = off.
exampleWhich crate's key is given. Use the crate's file name without .yml.
1How many keys each player gets each time.
60Minutes between two gifts. Example: 60 = every hour.
''Only players with this permission get the keys. Leave empty ('') for all online players.
falseIf DKeyAll is installed, this timer stays off so players do not get keys twice. true = run this timer anyway, next to DKeyAll.
--- Sounds --- Each sound has: name (any Minecraft sound name, empty = silent), volume (1.0 = normal), pitch (1.0 = normal).
Played when a player clicks a button.
'ui.button.click'0.71.2Played when the reward is handed over.
'entity.player.levelup'1.01.6Played when something is refused (no key, no permission, cooldown).
'entity.villager.no'1.01.0Played at every step of the spinning reel in a roll crate.
'block.note_block.hat'0.61.4Played when the reel stops on the reward.
'entity.player.levelup'1.01.6--- Crate looks (the gui: block of a crate file) --- A roll crate can have its own look. In the crate file write "gui: stars" to take a template from the list below, or a "gui:" section to change single things (see crates/example.yml). Everything here is the starting point a crate's gui: block changes. The look is used by the roll menu and the rewards preview.
'&8%crate% &8| ʀᴏʟʟ'Window title. %crate% is the crate's name. Colours, & codes and <#00B5FF>text</#72D6FF> gradients work.
'&8%crate% &8| ʀᴇᴡᴀʀᴅs'5Rows of the window, 1 to 6. The buttons below are placed from the number of rows.
Ready-made looks. A crate picks one with "gui: <name>". Add your own by copying one: the name you give it shows up in the in-game editor. Each can set title, rows, background, filler, stars, buttons and decor.
background: filler = the pattern below is painted, stars = it is painted and star items twinkle on it,
none = no background at all.
filler.pattern: all, border, checker or none. filler.material is the main pane, alt-material the second
pane of checker.
stars: count of star items, material of a star (any item), twinkle: true = they switch on and off.
decor: extra items such as [{slot: 0, material: BEACON, name: ' '}] that do nothing.'&8%crate% &8| ʀᴏʟʟ'5fillerborderBLACK_STAINED_GLASS_PANE'&#B05CFF%crate% &8| ᴛʜᴇ ꜱᴋʏ'5starsallBLACK_STAINED_GLASS_PANE10NETHER_STARtrue'&8%crate% &8| ᴄʜᴇᴄᴋᴇʀ'5fillercheckerBLACK_STAINED_GLASS_PANEGRAY_STAINED_GLASS_PANE'DB4FF%crate% &8| ᴠᴀᴜʟᴛ'6fillerborderBLUE_STAINED_GLASS_PANE'&8%crate%'3none--- Crate animations --- A roll crate can play a built-in animation when it opens (see "animation:" in crates/example.yml). The reward is chosen and paid before the animation starts, so closing the menu, leaving the server or a restart during the animation never loses or duplicates a reward.
20The most animations that may play at the same time on the whole server. A player who opens a crate while this many are running gets the reward shown at once, with no animation. Raise it only if many players open crates together and the server copes.
3The most admin previews from the crate editor (and /crates preview <crate> animation) that may play at the same time. They are counted apart from max-concurrent, so a preview never makes a player's real opening skip its animation.
--- Roll crates --- A roll crate (mode: roll) does not let the player choose. A reel spins and stops on a random reward.
80How long the reel spins, in ticks. 20 ticks = 1 second, so 80 = 4 seconds. The reel starts fast and slows down. A crate file can set its own length.
falsetrue = no spinning, the reward is handed over at once. false = show the reel.
30After the reel stops, how long the result stays on screen before the menu closes, in ticks. 30 = 1.5 seconds.
Lines under each reward in the list of possible rewards. You can use: %chance% (win chance in percent)
--- Particles and holograms --- Effects above crate blocks that a crate file can switch on.
truetrue = particles and holograms are shown. false = neither, for every crate.
24Particles are only drawn for players closer than this, in blocks. Lower it to save performance.
10Every this many seconds the holograms are checked and put back if they went missing. Example: 10 = every 10 seconds. You rarely need to change this.
--- History log --- A record of who opened which crate and who was given keys. Staff read it with /crates log.
truetrue = write the log. false = keep no history.
90Log entries older than this many days are deleted. Example: 90 = about 3 months. 0 = keep forever.
10How many entries one page of /crates log shows (from 3 to 25).
5/crates stats counts opens, players and rewards from this same log, so it only covers the days it is kept (keep-days). This is how many of the most given rewards it lists under each crate when you ask for all crates (from 1 to 25). Asking for one crate always lists at least 15.
--- Open several keys at once --- Lets players open many keys in one go with /crates open <crate> <amount|all> or the "Open xN" button. Crates where players choose their reward, and crates with a cooldown, always open one key at a time.
truetrue = players can open several at once. false = one key at a time only.
64The most keys one request can spend. Example: 64 = "/crates open example all" uses at most 64 keys.
--- Pity system (roll crates only) --- Pity guarantees a good reward after a number of unlucky opens. It is switched on inside a crate file, not here. This is only the text shown in the reward list.
Lines under a guaranteed reward in the list of possible rewards. You can use: %left% (opens left until it is guaranteed) %after% (the number set in the crate file)
--- Player data ---
300How often cooldowns and pick counters are saved, in seconds. Also saved when the server stops. Example: 300 = every 5 minutes.
--- Time display --- The words used to show a wait in messages. Example: 2h 14m. "now" is shown when no time is left.
'now''d''h''m''s'--- Messages --- Chat messages. & colour codes and &#RRGGBB work. You can use in most of them: %crate% %crate_id% %color% %key_name% %key_id% %key_cost% %rewards% A comment above a message says when it is shown and which extra placeholders it has.
'&cYou are not allowed to do that.'Missing permission to open this crate.
'&7The %color%%crate%&7 is not available right now.'The crate file says enabled: false.
'&fYou don''t have any %color%%key_name% Keys&f! &7(You need %key_cost%)'Not enough keys. %keys% = what they have.
'&cMake room first - you need %slots% free inventory slot(s).'Inventory too full. %slots% = how many are needed.
'&7You can open the %color%%crate%&7 again in &f%time%&7.'Crate on cooldown. %time% = remaining (e.g. "2h 14m").
'&fYou received %reward%&f!'Reward handed over. %reward% = display name.
'&cThe economy refused your money reward (%reason%). Your key was returned.'Economy refused the payment. %reason% = its error message.
'&cYour reward could not be paid out, so nothing was taken. Your key was returned - try again in a moment.'Payout failed partway; keys returned.
'&cYour reward was only paid in part. Please tell a staff member what you opened.'Payout failed after parts were already taken; keys not returned.
'&cThis reward is reserved - you cannot pick it.'The reward requires its own permission node.
'&cYou already picked this reward %max% time(s) - that is the limit.'max-per-player limit reached. %max% = the limit.
'&fYou received F123%amount% %key_name% Key(s)&f! &7(/keys)'Timed key-all handed out keys. %amount% = how many.
'&cThis crate block cannot be broken.'Tried to break a protected crate block.
'&cOnly players can use this.''&cNo crate called &f%id%&c exists. &7(/crates list)''&cNo player called &f%name%&c has ever joined.''&c%name% is offline, so a crate cannot be opened for them.''&cThat is not a usable amount: &f%input%''�B5FF&lCRATES &8| &7What you can do'/crates help lines.
'&7/%label% open <crate> <amount|all> &8- &fopen several at once''�B5FF&lCRATES STAFF &8| &7Admin commands''&7/%label% reload &8- &freload every crate''&7/%label% list &8- &flist crates and their locations''&7/%label% open <crate> [player] &8- &fopen a crate, for yourself or someone else''&7/%label% edit [crate] &8- &fedit crates in a menu''&7/%label% setloc <crate> &8- &fmake the block you look at a crate''&7/%label% delloc &8- &fremove the crate from the block you look at''&7/%label% keyall <crate> [amount] &8- &fgive keys to everyone online''&7/%label% setmode <crate> <pick|roll> &8- &fchange how a crate pays out''&7/%label% log [player] [crate] [page] &8- &fread the open and key log''&7/%label% stats [crate] &8- &fopens, players and rewards given per crate''&7/%label% animation <crate> <name|none> &8- &fchoose how a roll crate opens''&7/%label% preview <crate> [animation] &8- &fsee the rewards menu, or play the animation without paying''&7/%label% hologram import <name> <crate> &8- &fmove a hologram onto a crate''&aThe animation of %crate% is now &f%animation%&a.''&aThe animation of %crate% was removed.''&cNo animation called %name%. Use one of: %list%, or none.''&cA custom animation is written in the crate file. This command picks a built-in one.''&7Playing the animation of %crate%. Nothing is paid out.''�B5FF&lKEYS &8| &7What you can do''&7/%label% &8- &fsee how many keys you have''�B5FF&lKEYS STAFF &8| &7Admin commands''&7/%label% <player> &8- &fsee someone else''s keys''&7/%label% <give|take|set> <player> <crate> <amount> &8- &fchange a player''s keys''&7Usage: &f/crates setmode <crate> <pick|roll>''&fThe %color%%crate%&f now works in F123%mode%&f mode.'/crates setmode. %mode% = pick or roll.
'&cThere is nothing in the %color%%crate%&c you can win right now.'Roll crate: no reward available for this player.
/keys balance list (no prefix).
' %color%%key_name% Keys&7: &f%keys%'One line per crate.
'&f%player% now has F123%keys%&f keys of F123%key_id%&f.'Admin changed a balance.
'&fYou received F123%amount%&f key(s)! &7(/keys)'Told to the receiving player on /keys give.
'&fWhile you were away you received F123%amount%&f key(s) of F123%key_id%&f. &7(/keys)'Shown a few seconds after joining when /keys give hit you while offline.
'&fReloaded F123%count%&f crates with F123%blocks%&f blocks.'/crates reload. %count% = crates, %blocks% = bound blocks.
'&7Crates on this server:'/crates list (no prefix).
' &f%crate_id% &7- %color%%crate%&7, %rewards% rewards, %locations% blocks, enabled: %enabled%'%locations% = bound blocks, %enabled% = true/false
'&7Usage: &f/crates log [player] [crate] [page]''&cThe history log is switched off (log.enabled in settings.yml).'/crates log (no prefix). %filter% %page%
' &8%time% &f%player% &7opened &f%crate% &7and got &f%reward% &8(%mode%, %key%)'%time% %player% %crate% %reward% %mode% (pick or roll) %key% (key id spent)
' &8%time% &f%player% &7%action% &f%amount% &7%crate% key(s) &8by %by%'%time% %player% %crate% (key id) %action% (give, take or set) %amount% %by%
' &7Next page: &f%command%'%command%
/crates stats (no prefix). %filter% %days% (how long the log is kept)
' %color%%crate% &8- &f%opens% &7opens by &f%players% &7players &8(%mass% several-at-once, %refunded% refunded, since %since%)'%color% %crate% %crate_id% %opens% (paid opens) %players% (different players) %mass% (opens made with open-several) %refunded% (opens undone and the key given back) %since% (first logged open)
' &8- &f%reward% &7x%count% &8(%percent%%)'%reward% %count% %percent% (share of that crate's opens)
'&7Usage: &f/crates hologram import <hologram-name> <crate>''&cThe hologram plugin is not running, so there is no hologram to import.''&cNo usable hologram called &f%name%&c (it needs a world and at least one line).'%name%
'&cCould not write the %color%%crate%&c file. The hologram &f%name%&c was left alone.''&fHologram F123%name%&f now belongs to the %color%%crate%&f and was removed from the hologram plugin.''&fCopied F123%name%&f into the %color%%crate%&f, but could not remove it from the hologram plugin - delete it there so it is not drawn twice.''&cOpening several keys at once is switched off.'Mass open. %opened% %requested% %keys% (left)
'&7The %color%%crate%&7 lets you choose each reward, so it opens one key at a time.''&7The %color%%crate%&7 has a cooldown, so it opens one key at a time.'' &8│ &f%count%x &7%reward%'%count% %reward%
'&7Stopped after %opened% of %requested% - the keys you did not use are still yours.''&cLook at the block you want to use (max 8 blocks away).'/crates setloc & delloc. %location% = World;x;y;z
'&fBlock F123%location%&f now opens the %color%%crate%&f.''&cThat block already belongs to this crate.''&fBlock F123%location%&f no longer opens the %color%%crate%&f.''&cThe block you look at is not a crate.''&fGave F123%amount%&f %key_name% Key(s) to F123%count%&f player(s).'/crates keyall. %count% = players reached, %amount% = keys each.
--- In-game editor (/crates edit) --- Texts and buttons of the editor menu where admins change crates without opening files. You normally never need to change anything below.
[cancel, abort]Words that abort a question, typed in chat or on the sign. Leaving the sign empty aborts too.
60Seconds before a question times out.
Short answers are typed on a sign instead of in chat, when DCore's text-input mode is sign. Each line is the sign title for messages.prompt-<name> below, about 15 characters. A question with no line here, like a display name or a command, is asked in chat because a sign is too narrow.
'Key id''Keys per open''Reward id''Money amount''Max picks or -1''&fNew reward'Display name for newly created rewards.
Titles of the editor screens.
'Crate Editor''Edit crate: %crate_id%''Rewards: %crate_id%''Reward: %reward_id%''Items of: %reward_id%''Locations: %crate_id%''Look: %crate_id%''Preview: %crate_id%'Editor messages. Missing lines fall back to built-in English.
'&aSaved.''&7Cancelled - nothing was changed.''&cThis crate no longer exists - its file was removed or broke.''&cThat is not a number I can use here.''&cThat is not a usable id - letters, digits, - and _ only.''&cA reward with that id already exists in this crate.''&7Now click the slot this reward should move to.''&aItems saved.''&7Type how many ticks the animation lasts, 0 to 1200 (&f%cancel%&7 to abort).''&7Type a sound name, &fnone&7 for silent or &fdefault&7 (&f%cancel%&7 to abort).''&7Type a sound name, &fnone&7 for silent or &fdefault&7 (&f%cancel%&7 to abort).''&7Type a particle name or &fnone&7 (&f%cancel%&7 to abort).''&7Type the id of the crate that should get this animation and look (&f%cancel%&7 to abort).''&cThat is not a Minecraft sound name.''&cThat is not a particle name.''&aCopied the animation and look to %target%.''&cNo crate called %target%.''&cThis crate has no animation or look to copy.''&cOnly roll crates have an animation. Switch this crate to roll mode first.''&7Click the location again to remove it.''&7Click the TNT again to really delete this reward.''On''Off''GF521Selected''�B5FF» &fClick &7to choose''none''default''&aReward created - now give it a display item and a payload.''&aReward deleted.''&7Click the TNT again to really delete this reward.''&7Click an item in your own inventory below to make it the menu face of this reward.''&7Click the location again to remove it.''&aLocation removed.''&7Type the new display name in chat (&f%cancel%&7 to abort). Colours: &f&a&7, &fF123&7.''&7Type the next description line (&f%cancel%&7 to abort).''&7Type the key id this crate should spend (&f%cancel%&7 to abort).''&7Type how many keys one open costs (&f%cancel%&7 to abort).''&7Type the permission node, or &fnone&7 for everybody (&f%cancel%&7 to abort).''&7Type an id for the new reward - letters, digits, - and _ (&f%cancel%&7 to abort).''&7Type one console command without the leading / - &f%player%&7 is replaced. &fnone&7 removes all (&f%cancel%&7 to abort).''&7Type one message line for the picker, or &fnone&7 to remove all (&f%cancel%&7 to abort).''&7Type the server-wide announcement - &f%player%&7 and &f%reward%&7 are replaced. &fnone&7 removes it (&f%cancel%&7 to abort).''&7Type how often one player may ever pick this, -1 for unlimited (&f%cancel%&7 to abort).''&7Type the money amount this reward pays, 0 for none (&f%cancel%&7 to abort).'Editor screen buttons. Missing values fall back to built-in defaults.
GRAY_STAINED_GLASS_PANE'&7'NAME_TAG'&eDisplay name'WRITABLE_BOOK'&eDescription'TRIPWIRE_HOOK'&eKey id'GOLD_NUGGET'&eKeys per open'PAPER'&ePermission''&eEnabled: &f%enabled%''&eMode: &f%mode%'CHEST'&eRewards &7(%rewards%)'COMPASS'&eLocations &7(%locations%)'LODESTONE'&e%world% &f%x% %y% %z%'OAK_SIGN'&eAdding a block'CHEST'&eActual items &7(%items%)'GOLD_INGOT'&eMoney &7(%money%)'COMMAND_BLOCK'&eCommands &7(%commands%)'WRITABLE_BOOK'&eMessages &7(%messages%)'BELL'&eBroadcast'PAPER'&ePermission'COMPARATOR'&eMax per player &7(%max%)''&eEnabled: &f%enabled%'TNT'&cDelete this reward'FIREWORK_STAR'&eAnimation & look'BARRIER'&eClear description'HOPPER'&eMove rewards: &f%state%'PAPER'&e%template%'RED_STAINED_GLASS_PANE'&eShorter'LIME_STAINED_GLASS_PANE'&eLonger'CLOCK'&eLength: &f%duration% ticks'REPEATER'&eSpeed: &f%curve%'NOTE_BLOCK'&eStep sound: &f%tick_sound%'BELL'&eEnd sound: &f%end_sound%'FIREWORK_STAR'&eParticle: &f%particle%'PAINTING'&e%preset%'BARRIER'&eNormal menu'ENDER_EYE'&aPlay a preview'WRITABLE_BOOK'&eCopy to another crate'TNT'&cRemove the animation'CHEST'&eRewards preview'What the animation list in the editor shows for each built-in animation.
CLOCK'A row of rewards scrolls past a marker and slows down.'HOPPER'The same, but scrolling down a column.'COMPASS'Rewards turn around a ring and stop at the top.'ENDER_PEARL'The slots shuffle random rewards, then show the winner.'WATER_BUCKET'Rows fall down the menu, then the reward appears.'CHEST'A gift box shakes, then opens.'FIREWORK_ROCKET'No animation: the reward shows at once.'# General settings for all crates: how players open them, sounds, menu texts and chat messages.# Each crate itself (rewards, keys, locations) is a file in the crates/ folder. Edit, then run /crates reload.# Used by updates. Do not edit.config-version: 1# Language of the plugin's texts: EN, FR or ES.language: EN# Text added in front of every chat message from this plugin. Use '' for no prefix.prefix: '�B5FF&lCRATE &8| '# --- Clicking crate blocks ---# What happens when a player clicks the block that a crate is placed on (chest, barrel...).interaction:# Does a right-click on the crate block open the crate menu? true = yes, false = no.right-click-opens: true# Does a left-click on the crate block open the crate menu? true = yes, false = no.left-click-opens: true# Can a player look inside a crate when they have no key?# true = yes. Anyone can open the menu to see the rewards. A key is only needed to actually pick one.# false = no. A player with too few keys gets the "no-keys" message instead of the menu.open-without-key: true# Stop crate blocks from being broken, or blown up by explosions and pistons?# true = protected. false = anyone who can break blocks there can destroy the crate.protect-blocks: true# Players with this permission may still break crate blocks. Give it to your admins.bypass-permission: 'dcrates.admin'# --- Opening a crate ---# Rules that apply when a player tries to use a key.open:# Players need this permission to open any crate. Leave empty ('') so everybody can.use-permission: 'dcrates.use'# Refuse the open when the player's inventory is too full for the reward?# true = refuse, and the key is not spent. The player sees the "inventory-full" message.# false = do not check.require-free-slot: true# How many empty inventory slots a player needs. Only used when require-free-slot is true.free-slots-needed: 1# Before a key is spent, check that every console command in the reward can run?# true = a reward with a mistyped command or a missing plugin is refused, so players do not lose a key for nothing.# false = no check.validate-commands: true# After a player has taken a reward, close the menu?# true = close it. false = it stays open.close-menu-after-open: true# Seconds a player must wait before opening the same crate again. Example: 3600 = 1 hour. 0 = no wait.# A crate file can set its own wait with cooldown-seconds. A crate that says "default" uses this number.default-cooldown-seconds: 0# --- Shared menu texts ---menu:# Extra lines shown under every reward in the menu where the player picks a reward.# You can use: %crate% %color% %key_name% %key_cost% %reward%reward-lore-selection:- ''- '�B5FF» &fClick &7to choose'# The word shown instead of a number when a reward has no limit per player (max-per-player).unlimited-text: 'unlimited'# --- /keys command ---keys:# Should /keys leave out crates that are switched off (enabled: false in the crate file)?hide-disabled-crates: true# --- /crates overview menu ---# The menu that lists every crate. Players open it with /crates.overview:# The menu's title. You can use: %page% %pages%title: '&8ᴄʀᴀᴛᴇꜱ'# Keep an empty edge around the crates?# true = crates are centred with an empty border. false = crates fill the whole menu.border: true# Item used to fill the empty slots, written as a Minecraft item name. Example: GRAY_STAINED_GLASS_PANE# Leave empty ('') for no item (the slots look empty).filler: ''# The page buttons, shown when there are more crates than fit on one page.# You can use in names: %page% (this page) %pages% (how many pages)previous:material: ARROWname: '<#00B5FF>Previous Page</#72D6FF> &8(%page%/%pages%)'next:material: ARROWname: '<#00B5FF>Next Page</#72D6FF> &8(%page%/%pages%)'# Text lines under each crate's icon.# You can use: %crate% %color% %keys% (keys the player has) %key_name% %key_cost% %rewards%icon-lore:- ''- '&8│ &7Your keys &f%keys%'- ''- '�B5FF» &fClick &7to view rewards'# --- Announcements ---announce:# Rewards in a crate file can have a broadcast text that tells the whole server who won.# true = those announcements are sent. false = none are sent, without editing any crate file.enabled: true# --- Lid animation ---lid:# Open the lid of the crate block (chest, barrel, shulker box) while a player looks at the menu?# A single crate can also turn this off with lid-animation: false in its file.enabled: true# --- Free keys on a timer ---# Gives keys to every online player every so often. The DKeyAll plugin does the same with more options.key-all:# true = give keys on the timer below. false = off.enabled: false# Which crate's key is given. Use the crate's file name without .yml.crate: example# How many keys each player gets each time.amount: 1# Minutes between two gifts. Example: 60 = every hour.interval-minutes: 60# Only players with this permission get the keys. Leave empty ('') for all online players.permission: ''# If DKeyAll is installed, this timer stays off so players do not get keys twice.# true = run this timer anyway, next to DKeyAll.run-anyway: false# --- Sounds ---# Each sound has: name (any Minecraft sound name, empty = silent), volume (1.0 = normal), pitch (1.0 = normal).sounds:# Played when the crate menu opens.menu-open:name: 'block.shulker_box.open'volume: 0.8pitch: 1.0# Played when the menu closes.menu-close:name: 'block.shulker_box.close'volume: 0.8pitch: 1.0# Played when a player clicks a button.click:name: 'ui.button.click'volume: 0.7pitch: 1.2# Played when the reward is handed over.reward:name: 'entity.player.levelup'volume: 1.0pitch: 1.6# Played when something is refused (no key, no permission, cooldown).deny:name: 'entity.villager.no'volume: 1.0pitch: 1.0# Played at every step of the spinning reel in a roll crate.roll-tick:name: 'block.note_block.hat'volume: 0.6pitch: 1.4# Played when the reel stops on the reward.roll-win:name: 'entity.player.levelup'volume: 1.0pitch: 1.6# --- Crate looks (the gui: block of a crate file) ---# A roll crate can have its own look. In the crate file write "gui: stars" to take a template from the list# below, or a "gui:" section to change single things (see crates/example.yml). Everything here is the# starting point a crate's gui: block changes. The look is used by the roll menu and the rewards preview.crate-gui:# Window title. %crate% is the crate's name. Colours, & codes and <#00B5FF>text</#72D6FF> gradients work.title: '&8%crate% &8| ʀᴏʟʟ'preview-title: '&8%crate% &8| ʀᴇᴡᴀʀᴅs'# Rows of the window, 1 to 6. The buttons below are placed from the number of rows.rows: 5# The buttons. slot is 0 at the top left and counts right and down, 9 per row. Set slot: -1 to leave a# button out. name and lore can use %crate% %color% %key_name% %key_cost% %keys% %cooldown% %mass_amount% %mass_all%.# The default places open, preview, mass, all and close in the bottom row, and info, key and cost on the top.buttons:open:material: LIME_STAINED_GLASS_PANEname: '<#00B5FF>Roll</#72D6FF>'lore:- '&8│ &7Spend &f%key_cost% %key_name% Key(s)&7 and'- '&8│ &7win a random reward.'- '&8│ &7You have &f%keys%&7.'- ''- '�B5FF» &fClick &7to roll'preview:material: BOOKname: '<#00B5FF>Rewards</#72D6FF>'lore:- '&8│ &7See every reward and how'- '&8│ &7likely it is.'- ''- '�B5FF» &fClick &7to look'mass:material: LIME_DYEname: '<#00B5FF>Open x%mass_amount%</#72D6FF>'lore:- '&8│ &7Spend up to &f%mass_amount%&7 keys at once'- '&8│ &7and get a summary of what you won.'- ''- '�B5FF» &fClick &7to open'all:material: GREEN_DYEname: '<#00B5FF>Open All</#72D6FF>'lore:- '&8│ &7Spend &f%mass_all%&7 key(s) at once.'- ''- '�B5FF» &fClick &7to open'close:material: BARRIERname: '<#FF5C5C>Close</#FFA3A3>'lore: []info:material: PAPERname: '%crate%'lore:- '&8│ &7Opens with &f%key_name%&7.'- '&8│ &7You have &f%keys%&7 key(s).'key:material: TRIPWIRE_HOOKname: '&fYour keys'lore:- '&8│ &7%key_name%: &f%keys%'cost:material: GOLD_NUGGETname: '&fCost per open'lore:- '&8│ &7%key_cost% %key_name% Key(s)'# Ready-made looks. A crate picks one with "gui: <name>". Add your own by copying one: the name you give it# shows up in the in-game editor. Each can set title, rows, background, filler, stars, buttons and decor.# background: filler = the pattern below is painted, stars = it is painted and star items twinkle on it,# none = no background at all.# filler.pattern: all, border, checker or none. filler.material is the main pane, alt-material the second# pane of checker.# stars: count of star items, material of a star (any item), twinkle: true = they switch on and off.# decor: extra items such as [{slot: 0, material: BEACON, name: ' '}] that do nothing.presets:slate:title: '&8%crate% &8| ʀᴏʟʟ'rows: 5background: fillerfiller:pattern: bordermaterial: BLACK_STAINED_GLASS_PANEstars:title: '&#B05CFF%crate% &8| ᴛʜᴇ ꜱᴋʏ'rows: 5background: starsfiller:pattern: allmaterial: BLACK_STAINED_GLASS_PANEstars:count: 10material: NETHER_STARtwinkle: truechecker:title: '&8%crate% &8| ᴄʜᴇᴄᴋᴇʀ'rows: 5background: fillerfiller:pattern: checkermaterial: BLACK_STAINED_GLASS_PANEalt-material: GRAY_STAINED_GLASS_PANEborder:title: 'DB4FF%crate% &8| ᴠᴀᴜʟᴛ'rows: 6background: fillerfiller:pattern: bordermaterial: BLUE_STAINED_GLASS_PANEminimal:title: '&8%crate%'rows: 3background: none# Buttons of the rewards preview menu. %page% and %pages% work in the page label.nav:previous:material: ARROWname: '&fPrevious page'next:material: ARROWname: '&fNext page'back:material: BARRIERname: '<#FF5C5C>Close</#FFA3A3>'page:material: PAPERname: '&7Page %page% of %pages%'# --- Crate animations ---# A roll crate can play a built-in animation when it opens (see "animation:" in crates/example.yml).# The reward is chosen and paid before the animation starts, so closing the menu, leaving the server or a# restart during the animation never loses or duplicates a reward.animation:# The most animations that may play at the same time on the whole server. A player who opens a crate while# this many are running gets the reward shown at once, with no animation. Raise it only if many players# open crates together and the server copes.max-concurrent: 20# The most admin previews from the crate editor (and /crates preview <crate> animation) that may play at the# same time. They are counted apart from max-concurrent, so a preview never makes a player's real opening skip# its animation.max-previews: 3# --- Roll crates ---# A roll crate (mode: roll) does not let the player choose. A reel spins and stops on a random reward.roll:# How long the reel spins, in ticks. 20 ticks = 1 second, so 80 = 4 seconds. The reel starts fast and slows down.# A crate file can set its own length.default-duration-ticks: 80# true = no spinning, the reward is handed over at once. false = show the reel.instant: false# After the reel stops, how long the result stays on screen before the menu closes, in ticks. 30 = 1.5 seconds.close-delay-ticks: 30# Lines under each reward in the list of possible rewards. You can use: %chance% (win chance in percent)preview-lore:- ''- '&7Chance: &f%chance%%'# Lines under a reward this player cannot win right now (disabled, or needs a permission they lack).preview-lore-unavailable:- ''- '&cNot available to you right now.'# --- Particles and holograms ---# Effects above crate blocks that a crate file can switch on.fx:# true = particles and holograms are shown. false = neither, for every crate.enabled: true# Particles are only drawn for players closer than this, in blocks. Lower it to save performance.particle-range: 24# Every this many seconds the holograms are checked and put back if they went missing.# Example: 10 = every 10 seconds. You rarely need to change this.refresh-seconds: 10# --- History log ---# A record of who opened which crate and who was given keys. Staff read it with /crates log.log:# true = write the log. false = keep no history.enabled: true# Log entries older than this many days are deleted. Example: 90 = about 3 months. 0 = keep forever.keep-days: 90# How many entries one page of /crates log shows (from 3 to 25).page-size: 10# /crates stats counts opens, players and rewards from this same log, so it only covers the days it is kept (keep-days).# This is how many of the most given rewards it lists under each crate when you ask for all crates (from 1 to 25).# Asking for one crate always lists at least 15.stats-top-rewards: 5# --- Open several keys at once ---# Lets players open many keys in one go with /crates open <crate> <amount|all> or the "Open xN" button.# Crates where players choose their reward, and crates with a cooldown, always open one key at a time.mass-open:# true = players can open several at once. false = one key at a time only.enabled: true# The most keys one request can spend. Example: 64 = "/crates open example all" uses at most 64 keys.max: 64# How many keys the "Open xN" button in the menu opens. Example: 10 = "Open x10".button-amount: 10# --- Pity system (roll crates only) ---# Pity guarantees a good reward after a number of unlucky opens. It is switched on inside a crate file,# not here. This is only the text shown in the reward list.pity:# Lines under a guaranteed reward in the list of possible rewards.# You can use: %left% (opens left until it is guaranteed) %after% (the number set in the crate file)preview-lore:- ''- '&#FFD900★ &fGuaranteed within &#FFD900%left% &fopen(s)'# --- Player data ---data:# How often cooldowns and pick counters are saved, in seconds. Also saved when the server stops.# Example: 300 = every 5 minutes.save-interval-seconds: 300# --- Time display ---# The words used to show a wait in messages. Example: 2h 14m. "now" is shown when no time is left.time:now: 'now'days: 'd'hours: 'h'minutes: 'm'seconds: 's'# --- Messages ---# Chat messages. & colour codes and &#RRGGBB work.# You can use in most of them: %crate% %crate_id% %color% %key_name% %key_id% %key_cost% %rewards%# A comment above a message says when it is shown and which extra placeholders it has.messages:# Missing permission to open this crate.no-permission: '&cYou are not allowed to do that.'# The crate file says enabled: false.crate-disabled: '&7The %color%%crate%&7 is not available right now.'# Not enough keys. %keys% = what they have.no-keys: '&fYou don''t have any %color%%key_name% Keys&f! &7(You need %key_cost%)'# Inventory too full. %slots% = how many are needed.inventory-full: '&cMake room first - you need %slots% free inventory slot(s).'# Crate on cooldown. %time% = remaining (e.g. "2h 14m").cooldown: '&7You can open the %color%%crate%&7 again in &f%time%&7.'# Reward handed over. %reward% = display name.reward-received: '&fYou received %reward%&f!'# The reward was disabled while the menu was open.reward-unavailable: '&cThat reward is no longer available.'# Economy refused the payment. %reason% = its error message.reward-refused: '&cThe economy refused your money reward (%reason%). Your key was returned.'# Payout failed partway; keys returned.payout-failed: '&cYour reward could not be paid out, so nothing was taken. Your key was returned - try again in a moment.'# Payout failed after parts were already taken; keys not returned.payout-partial: '&cYour reward was only paid in part. Please tell a staff member what you opened.'# The reward requires its own permission node.no-reward-permission: '&cThis reward is reserved - you cannot pick it.'# max-per-player limit reached. %max% = the limit.reward-limit: '&cYou already picked this reward %max% time(s) - that is the limit.'# Timed key-all handed out keys. %amount% = how many.key-all-received: '&fYou received F123%amount% %key_name% Key(s)&f! &7(/keys)'# Tried to break a protected crate block.block-protected: '&cThis crate block cannot be broken.'# ---- Commands ----players-only: '&cOnly players can use this.'unknown-crate: '&cNo crate called &f%id%&c exists. &7(/crates list)'player-not-found: '&cNo player called &f%name%&c has ever joined.'player-offline: '&c%name% is offline, so a crate cannot be opened for them.'invalid-amount: '&cThat is not a usable amount: &f%input%'# /crates help lines.help-crates-header: '�B5FF&lCRATES &8| &7What you can do'help-crates-menu: '&7/%label% &8- &fopen the crate overview'help-crates-open: '&7/%label% open <crate> <amount|all> &8- &fopen several at once'help-crates-admin-header: '�B5FF&lCRATES STAFF &8| &7Admin commands'help-crates-reload: '&7/%label% reload &8- &freload every crate'help-crates-list: '&7/%label% list &8- &flist crates and their locations'help-crates-admin-open: '&7/%label% open <crate> [player] &8- &fopen a crate, for yourself or someone else'help-crates-edit: '&7/%label% edit [crate] &8- &fedit crates in a menu'help-crates-setloc: '&7/%label% setloc <crate> &8- &fmake the block you look at a crate'help-crates-delloc: '&7/%label% delloc &8- &fremove the crate from the block you look at'help-crates-keyall: '&7/%label% keyall <crate> [amount] &8- &fgive keys to everyone online'help-crates-setmode: '&7/%label% setmode <crate> <pick|roll> &8- &fchange how a crate pays out'help-crates-log: '&7/%label% log [player] [crate] [page] &8- &fread the open and key log'help-crates-stats: '&7/%label% stats [crate] &8- &fopens, players and rewards given per crate'help-crates-animation: '&7/%label% animation <crate> <name|none> &8- &fchoose how a roll crate opens'help-crates-preview: '&7/%label% preview <crate> [animation] &8- &fsee the rewards menu, or play the animation without paying'help-crates-hologram: '&7/%label% hologram import <name> <crate> &8- &fmove a hologram onto a crate'animation-set: '&aThe animation of %crate% is now &f%animation%&a.'animation-removed: '&aThe animation of %crate% was removed.'animation-unknown: '&cNo animation called %name%. Use one of: %list%, or none.'animation-custom: '&cA custom animation is written in the crate file. This command picks a built-in one.'preview-played: '&7Playing the animation of %crate%. Nothing is paid out.'help-keys-header: '�B5FF&lKEYS &8| &7What you can do'help-keys-self: '&7/%label% &8- &fsee how many keys you have'help-keys-admin-header: '�B5FF&lKEYS STAFF &8| &7Admin commands'help-keys-other: '&7/%label% <player> &8- &fsee someone else''s keys'help-keys-change: '&7/%label% <give|take|set> <player> <crate> <amount> &8- &fchange a player''s keys'usage-setmode: '&7Usage: &f/crates setmode <crate> <pick|roll>'# /crates setmode. %mode% = pick or roll.mode-set: '&fThe %color%%crate%&f now works in F123%mode%&f mode.'# Roll crate: no reward available for this player.roll-nothing: '&cThere is nothing in the %color%%crate%&c you can win right now.'# /keys balance list (no prefix).keys-header:- ''- ' F123&lYOUR KEYS'- ''# One line per crate.keys-line: ' %color%%key_name% Keys&7: &f%keys%'keys-footer:- ''# Admin changed a balance.keys-changed: '&f%player% now has F123%keys%&f keys of F123%key_id%&f.'# Told to the receiving player on /keys give.keys-received: '&fYou received F123%amount%&f key(s)! &7(/keys)'# Shown a few seconds after joining when /keys give hit you while offline.keys-received-offline: '&fWhile you were away you received F123%amount%&f key(s) of F123%key_id%&f. &7(/keys)'# /crates reload. %count% = crates, %blocks% = bound blocks.reloaded: '&fReloaded F123%count%&f crates with F123%blocks%&f blocks.'# /crates list (no prefix).list-header: '&7Crates on this server:'# %locations% = bound blocks, %enabled% = true/falselist-line: ' &f%crate_id% &7- %color%%crate%&7, %rewards% rewards, %locations% blocks, enabled: %enabled%'usage-log: '&7Usage: &f/crates log [player] [crate] [page]'log-off: '&cThe history log is switched off (log.enabled in settings.yml).'# /crates log (no prefix). %filter% %page%log-header:- ''- ' F123&lCRATE LOG &8| &7%filter% &8| &7page %page%'log-empty:- ' &7Nothing logged for that.'# %time% %player% %crate% %reward% %mode% (pick or roll) %key% (key id spent)log-open-line: ' &8%time% &f%player% &7opened &f%crate% &7and got &f%reward% &8(%mode%, %key%)'# %time% %player% %crate% (key id) %action% (give, take or set) %amount% %by%log-keys-line: ' &8%time% &f%player% &7%action% &f%amount% &7%crate% key(s) &8by %by%'# %command%log-more: ' &7Next page: &f%command%'# /crates stats (no prefix). %filter% %days% (how long the log is kept)stats-header:- ''- ' F123&lCRATE STATS &8| &7%filter% &8| &7last %days% days of the log'stats-empty:- ' &7Nothing logged for that.'# %color% %crate% %crate_id% %opens% (paid opens) %players% (different players) %mass% (opens made with open-several)# %refunded% (opens undone and the key given back) %since% (first logged open)stats-crate: ' %color%%crate% &8- &f%opens% &7opens by &f%players% &7players &8(%mass% several-at-once, %refunded% refunded, since %since%)'# %reward% %count% %percent% (share of that crate's opens)stats-reward: ' &8- &f%reward% &7x%count% &8(%percent%%)'usage-hologram: '&7Usage: &f/crates hologram import <hologram-name> <crate>'hologram-no-dholograms: '&cThe hologram plugin is not running, so there is no hologram to import.'# %name%hologram-import-missing: '&cNo usable hologram called &f%name%&c (it needs a world and at least one line).'hologram-import-failed: '&cCould not write the %color%%crate%&c file. The hologram &f%name%&c was left alone.'hologram-imported: '&fHologram F123%name%&f now belongs to the %color%%crate%&f and was removed from the hologram plugin.'hologram-imported-kept: '&fCopied F123%name%&f into the %color%%crate%&f, but could not remove it from the hologram plugin - delete it there so it is not drawn twice.'# Mass open. %opened% %requested% %keys% (left)mass-open-off: '&cOpening several keys at once is switched off.'mass-open-pick: '&7The %color%%crate%&7 lets you choose each reward, so it opens one key at a time.'mass-open-cooldown: '&7The %color%%crate%&7 has a cooldown, so it opens one key at a time.'mass-open-header:- ''- ' F123&lOPENED %opened% &8| %color%%crate%'# %count% %reward%mass-open-line: ' &8│ &f%count%x &7%reward%'mass-open-footer:- ' &7Keys left: &f%keys%'mass-open-stopped: '&7Stopped after %opened% of %requested% - the keys you did not use are still yours.'# /crates setloc & delloc. %location% = World;x;y;zlook-at-block: '&cLook at the block you want to use (max 8 blocks away).'setloc-added: '&fBlock F123%location%&f now opens the %color%%crate%&f.'setloc-duplicate: '&cThat block already belongs to this crate.'delloc-removed: '&fBlock F123%location%&f no longer opens the %color%%crate%&f.'delloc-none: '&cThe block you look at is not a crate.'# /crates keyall. %count% = players reached, %amount% = keys each.keyall-done: '&fGave F123%amount%&f %key_name% Key(s) to F123%count%&f player(s).'# --- In-game editor (/crates edit) ---# Texts and buttons of the editor menu where admins change crates without opening files.# You normally never need to change anything below.editor:chat:# Words that abort a question, typed in chat or on the sign. Leaving the sign empty aborts too.cancel-words: [cancel, abort]# Seconds before a question times out.timeout-seconds: 60# Short answers are typed on a sign instead of in chat, when DCore's text-input mode is sign.# Each line is the sign title for messages.prompt-<name> below, about 15 characters. A question# with no line here, like a display name or a command, is asked in chat because a sign is too narrow.signs:key-id: 'Key id'key-cost: 'Keys per open'reward-id: 'Reward id'money: 'Money amount'max-per-player: 'Max picks or -1'# Display name for newly created rewards.new-reward-name: '&fNew reward'# Titles of the editor screens.titles:crates: 'Crate Editor'crate: 'Edit crate: %crate_id%'rewards: 'Rewards: %crate_id%'reward: 'Reward: %reward_id%'items: 'Items of: %reward_id%'locations: 'Locations: %crate_id%'animation: 'Look: %crate_id%'animation-preview: 'Preview: %crate_id%'# Editor messages. Missing lines fall back to built-in English.messages:saved: '&aSaved.'prompt-cancelled: '&7Cancelled - nothing was changed.'crate-gone: '&cThis crate no longer exists - its file was removed or broke.'invalid-number: '&cThat is not a number I can use here.'invalid-id: '&cThat is not a usable id - letters, digits, - and _ only.'id-taken: '&cA reward with that id already exists in this crate.'move-pick-target: '&7Now click the slot this reward should move to.'items-saved: '&aItems saved.'prompt-duration: '&7Type how many ticks the animation lasts, 0 to 1200 (&f%cancel%&7 to abort).'prompt-tick-sound: '&7Type a sound name, &fnone&7 for silent or &fdefault&7 (&f%cancel%&7 to abort).'prompt-end-sound: '&7Type a sound name, &fnone&7 for silent or &fdefault&7 (&f%cancel%&7 to abort).'prompt-particle: '&7Type a particle name or &fnone&7 (&f%cancel%&7 to abort).'prompt-copy-target: '&7Type the id of the crate that should get this animation and look (&f%cancel%&7 to abort).'invalid-sound: '&cThat is not a Minecraft sound name.'invalid-particle: '&cThat is not a particle name.'copied: '&aCopied the animation and look to %target%.'copy-unknown: '&cNo crate called %target%.'copy-nothing: '&cThis crate has no animation or look to copy.'preview-needs-roll: '&cOnly roll crates have an animation. Switch this crate to roll mode first.'location-confirm-again: '&7Click the location again to remove it.'delete-confirm-again: '&7Click the TNT again to really delete this reward.'state-on: 'On'state-off: 'Off'state-selected: 'GF521Selected'state-click: '�B5FF» &fClick &7to choose'state-none: 'none'state-default: 'default'reward-created: '&aReward created - now give it a display item and a payload.'reward-deleted: '&aReward deleted.'delete-confirm: '&7Click the TNT again to really delete this reward.'display-how-click: '&7Click an item in your own inventory below to make it the menu face of this reward.'location-confirm: '&7Click the location again to remove it.'location-removed: '&aLocation removed.'prompt-display-name: '&7Type the new display name in chat (&f%cancel%&7 to abort). Colours: &f&a&7, &fF123&7.'prompt-description-line: '&7Type the next description line (&f%cancel%&7 to abort).'prompt-key-id: '&7Type the key id this crate should spend (&f%cancel%&7 to abort).'prompt-key-cost: '&7Type how many keys one open costs (&f%cancel%&7 to abort).'prompt-permission: '&7Type the permission node, or &fnone&7 for everybody (&f%cancel%&7 to abort).'prompt-reward-id: '&7Type an id for the new reward - letters, digits, - and _ (&f%cancel%&7 to abort).'prompt-command: '&7Type one console command without the leading / - &f%player%&7 is replaced. &fnone&7 removes all (&f%cancel%&7 to abort).'prompt-message: '&7Type one message line for the picker, or &fnone&7 to remove all (&f%cancel%&7 to abort).'prompt-broadcast: '&7Type the server-wide announcement - &f%player%&7 and &f%reward%&7 are replaced. &fnone&7 removes it (&f%cancel%&7 to abort).'prompt-max-per-player: '&7Type how often one player may ever pick this, -1 for unlimited (&f%cancel%&7 to abort).'prompt-money: '&7Type the money amount this reward pays, 0 for none (&f%cancel%&7 to abort).'# Editor screen buttons. Missing values fall back to built-in defaults.items:filler:material: GRAY_STAINED_GLASS_PANEname: '&7'crate-name:material: NAME_TAGname: '&eDisplay name'lore:- '&8│ &7Now: &f%crate%'- ''- '�B5FF» &fClick &7, then type the new name'crate-description:material: WRITABLE_BOOKname: '&eDescription'lore:- '&8│ &7Lines: &f%description_lines%'- ''- '�B5FF» &fClick &7: add a line'- '�B5FF» &fRight-click &7: clear all lines'crate-key-id:material: TRIPWIRE_HOOKname: '&eKey id'lore:- '&8│ &7Now: &f%key_id%'- '&8│ &7Which key this crate spends.'- ''- '�B5FF» &fClick &7, then type the new id'crate-key-cost:material: GOLD_NUGGETname: '&eKeys per open'lore:- '&8│ &7Now: &f%key_cost%'- ''- '�B5FF» &fClick &7, then type a number'crate-permission:material: PAPERname: '&ePermission'lore:- '&8│ &7Now: &f%permission%'- ''- '�B5FF» &fClick &7, then type the node'- '&8│ &7Type &fnone &7to allow everybody'crate-enabled:name: '&eEnabled: &f%enabled%'lore:- '&8│ &7Disabled crates keep their keys'- '&8│ &7but cannot be opened.'- ''- '�B5FF» &fClick &7to toggle'crate-mode:name: '&eMode: &f%mode%'lore:- '&8│ &7pick: players choose their reward.'- '&8│ &7roll: the reward is drawn by chance.'- ''- '�B5FF» &fClick &7to switch'crate-rewards:material: CHESTname: '&eRewards &7(%rewards%)'lore:- '&8│ &7Add, edit, move and remove'- '&8│ &7what this crate offers.'- ''- '�B5FF» &fClick &7to open'crate-locations:material: COMPASSname: '&eLocations &7(%locations%)'lore:- '&8│ &7The blocks players click.'- ''- '�B5FF» &fClick &7to open'location-entry:material: LODESTONEname: '&e%world% &f%x% %y% %z%'lore:- '&8│ &7A block that opens this crate.'- ''- '&#FF3030» Shift + Left-Click &7to remove'location-help:material: OAK_SIGNname: '&eAdding a block'lore:- '&8│ &7Look at the block and run'- '&8│ &7/crates setloc %crate_id%'- '&8│ &7Remove the one you look at with'- '&8│ &7/crates delloc'reward-items:material: CHESTname: '&eActual items &7(%items%)'lore:- '&8│ &7What the player really receives.'- '&8│ &7Whatever is left in the container'- '&8│ &7when it closes becomes the reward.'- ''- '�B5FF» &fClick &7to open'reward-money:material: GOLD_INGOTname: '&eMoney &7(%money%)'lore:- '&8│ &7Paid through Vault on top of items.'- ''- '�B5FF» &fClick &7, then type an amount'- '&8│ &7Type &f0 &7for none'reward-commands:material: COMMAND_BLOCKname: '&eCommands &7(%commands%)'lore:- '&8│ &7Console commands, &f%player%&7 is replaced.'- ''- '�B5FF» &fClick &7: add one line'- '�B5FF» &fRight-click &7: clear all'reward-messages:material: WRITABLE_BOOKname: '&eMessages &7(%messages%)'lore:- '&8│ &7Sent to the picker, one per line.'- ''- '�B5FF» &fClick &7: add one line'- '�B5FF» &fRight-click &7: clear all'reward-broadcast:material: BELLname: '&eBroadcast'lore:- '&8│ &7Now: &f%broadcast%'- '&8│ &7Announced to the whole server.'- ''- '�B5FF» &fClick &7: set'- '�B5FF» &fRight-click &7: clear'reward-permission:material: PAPERname: '&ePermission'lore:- '&8│ &7Now: &f%permission%'- '&8│ &7Only holders may pick this reward.'- ''- '�B5FF» &fClick &7, then type the node'- '&8│ &7Type &fnone &7for everybody'reward-max:material: COMPARATORname: '&eMax per player &7(%max%)'lore:- '&8│ &7How often ONE player may ever'- '&8│ &7pick this reward.'- ''- '�B5FF» &fClick &7, then type a number'- '&8│ &7Type &f-1 &7for unlimited'reward-enabled:name: '&eEnabled: &f%enabled%'lore:- '&8│ &7Disabled rewards stay in the file'- '&8│ &7but players never see them.'- ''- '�B5FF» &fClick &7to toggle'reward-delete:material: TNTname: '&cDelete this reward'lore:- '&8│ &7Removes only this reward''s section'- '&8│ &7from the crate file.'- ''- '&#FF3030» Click &7twice to delete'animation-open:material: FIREWORK_STARname: '&eAnimation & look'lore:- '&8│ &7Now: &f%animation%'- '&8│ &7Look: &f%look%'- ''- '�B5FF» &fClick &7to open'description-clear:material: BARRIERname: '&eClear description'lore:- '&8│ &7Removes all description lines.'- ''- '�B5FF» &fClick &7to clear'move-mode:material: HOPPERname: '&eMove rewards: &f%state%'lore:- '&8│ &7On: click a reward, then the slot'- '&8│ &7it should move to.'- ''- '�B5FF» &fClick &7to switch'anim-template:material: PAPERname: '&e%template%'lore:- '&8│ &7%description%'- ''- '%state%'anim-duration-minus:material: RED_STAINED_GLASS_PANEname: '&eShorter'lore:- '&8│ &7Takes %step% ticks off the length.'- ''- '�B5FF» &fClick &7to shorten'anim-duration-plus:material: LIME_STAINED_GLASS_PANEname: '&eLonger'lore:- '&8│ &7Adds %step% ticks to the length.'- ''- '�B5FF» &fClick &7to lengthen'anim-duration:material: CLOCKname: '&eLength: &f%duration% ticks'lore:- '&8│ &7About %seconds% seconds.'- ''- '�B5FF» &fClick &7, then type a number'anim-curve:material: REPEATERname: '&eSpeed: &f%curve%'lore:- '&8│ &7ease-out starts fast and slows down,'- '&8│ &7linear keeps a steady pace.'- ''- '�B5FF» &fClick &7to switch'anim-tick-sound:material: NOTE_BLOCKname: '&eStep sound: &f%tick_sound%'lore:- '&8│ &7Type &fnone &7for silent, &fdefault'- '&8│ &7for the normal sound.'- ''- '�B5FF» &fClick &7, then type a sound name'anim-end-sound:material: BELLname: '&eEnd sound: &f%end_sound%'lore:- '&8│ &7Type &fnone &7for silent, &fdefault'- '&8│ &7for the normal sound.'- ''- '�B5FF» &fClick &7, then type a sound name'anim-particle:material: FIREWORK_STARname: '&eParticle: &f%particle%'lore:- '&8│ &7Shown around the player at the reveal.'- '&8│ &7Type &fnone &7for no particle.'- ''- '�B5FF» &fClick &7, then type a particle name'gui-preset:material: PAINTINGname: '&e%preset%'lore:- '&8│ &7A ready-made look for the menu.'- ''- '%state%'gui-remove:material: BARRIERname: '&eNormal menu'lore:- '&8│ &7Removes the look and uses the'- '&8│ &7normal roll menu.'- ''- '�B5FF» &fClick &7to remove'anim-preview:material: ENDER_EYEname: '&aPlay a preview'lore:- '&8│ &7Plays the animation for you.'- '&8│ &7Nothing is paid out and no key is used.'- ''- '�B5FF» &fClick &7to play'anim-copy:material: WRITABLE_BOOKname: '&eCopy to another crate'lore:- '&8│ &7Copies the animation and look'- '&8│ &7to a crate you name.'- ''- '�B5FF» &fClick &7, then type the crate id'anim-remove:material: TNTname: '&cRemove the animation'lore:- '&8│ &7The crate goes back to its normal reel.'- ''- '�B5FF» &fClick &7to remove'anim-rewards:material: CHESTname: '&eRewards preview'lore:- '&8│ &7Opens the rewards menu players see.'- ''- '�B5FF» &fClick &7to look'# What the animation list in the editor shows for each built-in animation.templates:roulette:material: CLOCKdescription: 'A row of rewards scrolls past a marker and slows down.'csgo-vertical:material: HOPPERdescription: 'The same, but scrolling down a column.'wheel:material: COMPASSdescription: 'Rewards turn around a ring and stop at the top.'shuffle-reveal:material: ENDER_PEARLdescription: 'The slots shuffle random rewards, then show the winner.'cascade:material: WATER_BUCKETdescription: 'Rows fall down the menu, then the reward appears.'gift-open:material: CHESTdescription: 'A gift box shakes, then opens.'instant:material: FIREWORK_ROCKETdescription: 'No animation: the reward shows at once.'
DCore DCore owns the player database the keys live in, the menu framework and the config loader. Without it this plugin has nothing to stand on.
DCurrency, DKeyAll, packetevents, PlaceholderAPI, DHolograms, Vault. DCurrency holds the points that crate rewards pay and names the currency in reward names. Loading after it means a renamed currency is already in place when the crates are read. Without it, point rewards pay nothing and say so in the console. PlaceholderAPI gets the %dcrates_...% placeholders (keys, cooldown, opens, last reward). DHolograms draws the hologram a crate file asks for with hologram:, per-player lines included; without it plain text displays are used. PacketEvents lets the lid open for the opening player only; without it the lid opens for everyone nearby.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.