Skip to content

SnCrates v2.4.0

Choose a tag to compare

@ValentinTarnovsky ValentinTarnovsky released this 03 Sep 23:04
· 32 commits to main since this release

Changes

  • A crate key's own lore no longer shows on the menu icons drawn from it. The crate icons in /crates and the preview's info and withdraw buttons are all drawn from the crate's physical key item, and SnLib paints a template over a supplied item by appending the template's lore under the lore the item already carries. The result was every player reading the key's redeem instructions above the balance the icon exists to show, with no way for a menu file to remove or move them.
  • New {lore} placeholder. Those lines are not gone: write {lore} in a template's lore: and they come back, one lore line per line the key has, exactly where you put it. Nothing shows it by default.
    • guis/key-balance.yml - the default template and any per-crate template
    • guis/preview.yml - the info and withdraw templates
    • guis/preview-compact.yml - the info template
  • Reward icons in the preview are unchanged: a reward's own lore on its own icon is what the preview is for.

Existing installs get the new behaviour with no file edit; nothing in your menu files is rewritten.

Installation

Download the JAR below and place in your plugins folder. Requires SnLib.jar.