COMMANDS
- Updated the system.
- Hide some unecessary commands.
- Improved the tab-completion system.
- Improved the look of some commands.
BUG FIXED
- Fixed a bug where invalid theme & song data would be stored locally, leading to errors.
- Fixed a bug where players couldn't interact with menus if MySQL was disabled.
MYSQL DATABASE
- Optimized the overall system performance.
- Reduced the number of queries sent for each player.
- This change GREATLY boosted the performance.
- I was able to reduce load/save times by up to 80%.
- Added the data modification check:
- Only modified data will be sent to the database.
- Meaning, if a player joins and leaves immediately, no queries will be sent to the database.
- On the other hand, if, let's say, the player receives some currency, only that currency will be queried.
- Added systems in place to prevent server crashes when reloading the plugin.
- Fixed a lot of issues when file sync was enabled.
THEMES
- Added cool descriptions to themes.
- New Theme: Solar System
- Reworked Theme: End Astronaut Void Convergence
COMMANDS
- Updated the "/mb stats" command:
- Now displays player's unique ID.
- Formatting is better.
THEMES
- Re-coded the Underwater Trouble theme:
- No longer uses the external library for displaying lasers.
- Replaced the lasers with particle effects.
- Added back the water sphere effect.
- Added unique particles when opening more than one box.
BUG FIXES
- Fixed a bug where the open vault event would be fired twice.
MYSQL DATA SYNCING
- Introducing a new feature that allows you to upload boxes and loots to a MySQL database.
- Connected MysteryBoxes plugins will update their boxes and loots in real-time.
- Eliminates the need for manual configuration on multiple servers.
- Two tables are used: "MB_BOX_FILES" for boxes and "MB_LOOT_FILES" for loots.
- Import boxes, loots, or both.
- Plugin creates a session ID on load and compares it with the database.
- If the session ID doesn't match, boxes and loots are synced from the database.
- Use "/mb release" command to push a new session to the database.
- All connected MysteryBoxes will update their boxes and loots.
- Updated config.yml: https://pastebin.com/zmpuFuNV
GENERAL
- Optimizations and system updates.
BOXES
- The format for assigning loots has changed:
- Before: "id:loot_id;chance:50"
- After:
- By ID: "id{loot_id} | chance{50}"
- By File: "file{file_name} | chance{100}"
- You can now specify either the loot ID or the file name.
- If the file is specified, all loots from that file will be assigned.
FIREWORKS
- The firework builder has received an update.
- You can now use RGB colors for both the initial and fade colors.
- The builder is now much more beginner-friendly to work with:
- Before: STAR;false;false;0;LIME;WHITE
- After: type{BALL_LARGE} | flicker{true} | trail{false} | p{0} | c{WHITE} | f{rgb(255,255,255)}
GENERAL
- Updated error messages across the plugin.
- System updates and optimizations.
THEMES
- Added the ability to specify how the Vault looks during a theme.
- Updated the theme builder - you can now specify the number of rings and the task period (speed of the animation).
BUG FIXES
- Fixed a bug that caused placeholders not to be translated.
GENERAL
- Added null warnings to prevent unknown errors, such as "Task #X generated an exception".
ECONOMY
- Fixed a bug that sometimes caused the currency to be reset (sorry for that!).
HOLOGRAMS
- Added a warning when the plugin detects that one of the holograms was externally removed.
LOOTS
- "{DUST_TO_GIVE}" is now properly translated in broadcasts.
THEMES
- You can now customize the terrain blocks.
- The settings are located under the "theme-settings" in each theme file.
- Here's an example: https://pastebin.com/raw/Gb00vNDy
- Updated the system behind executing the themes.
- Note: Some themes may look weird after this update. I will work on them in future updates.
FILTERS
- You can now specify the default filtering option for players.
BOXES
- You can now specify whether a box can only be opened one at a time.
BUG FIXES
- Fixed a bug that caused null pointer exceptions under some scenarios.
ADMIN TOOLS MENU
- Replaced the admin-related shortcuts in the Vault with a single Admin Tools Menu.
- Within the Admin Tools menu, you can find various admin-related tools.
SONG PACK
- Added a new menu that guides you through the creation of a Song Pack.
- Removed the /mb generatepack and /mb verifypack commands.
[/img]
GENERAL
- Optimized the performance.
- Adjusted the default config files.
PERMISSIONS
- Adjusted some permission systems.
COMMANDS
- Improvements to various data-showing commands.
- Tab suggestions should now be more accourate.
MENUS
- Re-designed the Alerts menu - now with proper icons and descriptions.
COMMANDS
- Completely re-coded the tab completion system.
- With this update, the plugin will now suggest many more options.
- The error-checking and invalid-syntax systems have been improved.
- The plugin will now alert you if you entered an invalid number or provided incorrect range syntax.
- Tab completion now supports:
- Players
- Boxes/Gifts
- Songs
- Themes
- Any number-related arguments
- Range syntax
BUG FIXES
- Fixed: Incorrect number of boxes being opened when a player leveled up their Time Box upgrade.
MYSQL DATABASE
- Reduced the number of queries needed to save data.
- Previously, the plugin was sending a query for each box, gift, update, theme, song, etc., resulting in 30+ queries with the default configuration. As of this update, the number of queries will always be roughly +/- 9.
BUG FIXES
- Fixed: Item model data not being loaded properly for loots.
- Fixed: Not being able to create Vaults on player heads.
MYSQL DATABASE
- Optimized the connection.
- Optimized the systems for loading/saving data.
- Added more debug messages to easier locate issues.
GENERAL
- Updated the backend systems.
- Updated comments across the plugin.
- Minor optimizations.
BUG FIXES
- Fixed: Decoration items are not displayed in menus with specific triggers.
DEVELOPER'S NOTE
- The "Couldn't look up profile properties" error was caused by the plugin attempting to look up "player->" heads because Mojang limits the number of requests the server can make within a certain timestamp. For this reason, the "player->" heads are disabled until I find a solution on how to fix them. "custom->" heads are still working as intended.
BUG FIXES
- Fixed: Some menus freezing the server.
- Fixed: The "Couldn't look up profile properties" error.
BUG FIXES
- Fixed: The menus now take into account the "menu-rows" setting.
- Fixed: Menu items no longer throw "out-of-bounds" errors.