» New Features
+ Added customization to the cooldown placeholder by adding 'placeholder-seconds,' 'placeholder-minutes,' 'placeholder-hours,' and 'placeholder-days' to the Messages.YML to customize the word that reflects those values. This is only for the %specializedcrate_cooldown_[crate]% placeholder.
» Bug Fixes
+ Fixed an issue that caused the crate-cooldown placeholder to broadcast random numbers into the chat.
+ Fixed an issue that caused /scrates edit {crate} to say 'invalid crate' even if the command executed successfully.
+ Even though spaces in reward names is frowned up, fixed an issue that caused rewards with spaces from being loaded properly into the preview menu.
If you need any help setting up any of the new features, join the discord and ask for help! https://discord.gg/sFSSRzv
» New Features
+ ADDED COMPLETE CUSTOMIZATION TO THE REWARD PREVIEW MENU! THIS INCLUDES MULTIPLE PAGE SUPPORT, ADDING REWARDS, ADDING ANY ITEMS (FULLY CUSTOMIZABLE LIKE REWARDS: NAME, LORE, ENCHANTS, ETC.) To see how to customize this, please look at it in the in-game config and read the "help" message that explains how to set it up.
+ Added all of this to be customized in the in-game config under the "Rewards" tab for that specific crate.
+ Added 4 preview menu types: in order, sorted high to low chance, sorted low to high chance and CUSTOM.
+ Added the ability to custom the reward preview menu inventory name.
+ Added a new list selector feature! Any lists (besides sounds or materials) are now click to select instead of having to type out the value you want! This includes selecting particles, particle animations, display type, Citizens v2 mob type, obtain type, animation type, hologram animation type, action type, and the (new) preview menu type. This should speed up in-game editing.
» Changes
+ Some big performance tweaks! Opening crates and especially opening mass amounts of crates should be far less resource or lag intensive.
+ Changed file encoding to UTF-8 so accented symbols and Chinese characters are supported!
+ Creating a crate in the in-game config now automatically sets a crate type and saves it to the folder so, when it's created, it's immediately ready-to-go.
» Bug Fixes
+ Fixed the drag and drop menu not saving the name of a reward correctly.
+ Fixed some placeholderapi bugs (occasionally not displaying a value).
+ Fixed an issue that caused the reward display menu to not work with NPCs
+ Fixed an issue causing there to be random white space at the end of an action that built up over time.
+ Fixed an issue causing a crate to not be able to be deleted if there was a qued command waiting for it.
SORRY FOR THE SPAM IN UPDATES AND NOT ANY EXCITING FEATURES. Implementing a lot of this SQL support and connecting to external sources took a lot of effort. Relevant features that most of you will care about a lot more will come out soon!
» Changes
+ Changed a bit about how the fraud protection works.
» New Features
+ Added anti-fraud protection. Should be absolutely no noticeable difference in any use cases! (Unless of course the plugin is being fraudulently used).
» Bug Fixes
+ Fixed an issue causing the SQL server to disconnect after a while if not in use, and it wouldn't reconnect.
» New Features
+ Added MySQL support for cooldowns, virtual crates/keys, and player crate history! You must have your own SQL database but other than that it just works: creates the table for you and all. (NOTE: This feature is in beta. So it should work but there may be slight issues with it because there's only so much I can test on my own. Although I did do some rigorous testing.)
Few notes: All of the code is run in a different thread except the initial database connection. So, on startup, there may be a 1s lag but other than that it should have no effect on server performance.
+ Added 'loading-from-database' message which is displayed to players when they try to interact with a crate and their information hasn't yet been loaded from the database.
+ Added SQL.YML file which includes MySQL database login information.
» Changes
+ Few minor performance improvements
+ Renamed "The Defaults" to "The Essentials"
+ A few minor in-game config improvements
+ Moved hologram-offset from "The Essentials" to "Holograms" section of the config.
» Bug Fixes
+ Fixed an issue causing PRE actions to not work
+ Fixed reload button on the main menu of in-game config to not work
» Bug Fixes
+ Fixed an issue causing the shift-click to open all to not work sometimes.
+ Fixed an issue causing people to put items into the reward display menu but not be able to take them out.
+ Fixed an issue causing spam in the console if a crate was set to have a hologram animation but didn't have any 'frames' set yet.
+ Fixed an issue causing the plugin to throw an error if a reward item type was "AIR."
+ Fixed an issue causing the "crates" section of the in-game config to not open if there were no crates.
IGC = In-game configuration
» New Features
+ Added 'cover-block-name' to CrateConfig.YML and the IGC.
+ Added 'cover-block-lore' to CrateConfig.YML and the IGC
+ Added 'reward-block' to CrateConfig.YML and the IGC
+ Added 'reward-block-name' to CrateConfig.YML and the IGC
+ Added'reward-block-waiting-name' to CrateConfig.YML and the IGC
+ Added 'reward-block-unlock-name' to CrateConfig.YML and the IGC
Descriptions for all of these values are in the IGC, please check there for what they mean. (/scrates config -> CrateConfig.YML -> Discover Animation)
I am officially back from summer! Updates should start coming out again... If you have any bugs and/or suggestions PLEASE join the discord and let me know! I and many others are very active on there.
» New Features
+ Rewards can now accept DECIMALS as chances! Before, when you had to make the chances higher for other rewards to make the chance smaller for one reward, now just set its chance to 0.1 or 0.01 or any decimal you'd like! Additionally, Config.YML and the in-game config now accept decimals for reward chances.
+ Added Placeholder API support! See the spoiler below for all the placeholders. Also, if your hologram plugin supports PlaceholderAPI, it will work in the crate hologram!
+ Added the ability to disable lucky chests from spawning when user-placed blocks are mined (additionally, added 'luckychest-allow-placed-blocks' to the Config.YML and in-game config for that). Note: It's only a deterrent. Placed block data is lost on server restart so that block-logging isn't a burden on server resources, but it should be a big enough deterrent!%specializedcrates_cooldown_[cratename]% - The remaining cooldown a player has on a crate.
%specializedcrates_virtual_keys_[cratename]% - The number of virtual keys a player has for a crate.
%specializedcrates_virtual_crates_[cratename]% - The number of virtual crates a player has for a crate.
%specializedcrates_placedcrates% - The total number of placed crates on the server.
%specializedcrates_last_crate_opened% - The last crate the player opened.
%specializedcrates_last_crate_opened_rewards% - The last reward the player received.
%specializedcrates_last_player_[cratename]% - The last player to open the specified crate.
%specializedcrates_last_reward_[cratename]% - The last reward to be opened from the specified crate.
+ Added shift-click to open ALL keys in hand or virtual keys. Note: this will skip the crate animation but will still play the OPEN fireworks, particles, and sounds.
+ Added 'confirm-open' and 'shift-click-confirm' values to in-game config . and Config.YML. These values determine whether the player is asked to confirm that they want to open the crate or confirm that they want to open all of the crates (respectively) by forcing them to click it again.
+ Added 'confirm-timeout' value to Config.YML which determines how long the confirmation request will timeout in, in seconds.
+ Added 'confirm-open' and 'confirm-open-all' messages to Messages.YML that are displayed when the player is asked to confirm opening a crate or all crates.
+ Can now use '/crates givekey/givecrate [crate] ALL -v' with virtual crates! (Can give a virtual crate/key to everyone online).
+ Can now tab-complete '-v' in the givekey and givecrate commands.
+ If a player's inventory is full (or fills up) when they're given a crate, key, reward, or are having items returned to their inventory from the drag and drop menu, the extras are now dropped on the floor instead of just being lost forever.
+ Added plugin metrics using bStats (https://bstats.org/plugin/bukkit/SpecializedCrates)
» Changes
+ Minor change to the format of /keys
+ Added success message for giving everyone online a crate/key
+ The in-game config now notes that the 'glow' value is the same as 'hide enchants'
+ GIVE_KEY animation now logs reward history
» Bug Fixes
+ Fixed an issue causing '[' and ']' to wrap the display name in all of the crate actions.
