Skip to content

Alpha 5 - The (not so) Spooky update!

Pre-release
Pre-release
Compare
Choose a tag to compare
@Poslovitch Poslovitch released this 01 Nov 11:07
· 3108 commits to master since this release

Description

This pre-release fixes a few bugs and brings us the ability to hook into plugins, such as Vault and soon PlaceholderAPI! This version also introduces a lot of API breaking changes. They are necessary to provide you the nicest API when we will release 1.0 (before 2019).

Update very carefully !

A lot of config options changed, but please take a closer look to the database type:

  • If you were using FLATFILE, please change it to YAML.
  • If you were using MONGO, please change it to MONGODB.

"The Flattening", part 2

Level and WelcomeWarpSigns got updated and received their "Flattening update". They are now both available on CodeMC's Maven repository.
⚠️ There is a minor data loss risk for these two addons. If this occurs, just ask your players to recalculate their island level (if you're using Level) or to re-create their warp (if you're using WWS).
⚠️ Config & locales for both addons will be regenerated, as their name changed. Make sure to update carefully !

1.13.2

There was no significant change to Spigot's API between 1.13.1 and 1.13.2, so it's now safe to say that BentoBox officially supports 1.13.2 !

Update your addons !

Each addon you're using must be updated, otherwise they just won't launch (yes, I made it so that it won't spam your console with a huge load of errors ❤️).

Where is the Challenges addon ?

Ahum... Well, I didn't have the time to update this one yet. So, as we said in 2016, keep calm and wait for Poslovitch to fix that.

Changelog

How to read it

Each change/tweak/bug fix is listed in the corresponding category.
If a change is likely to do something that needs the user to keep a close eye on, then it is labelled with an icon.

Here is a list of the labels:

  • ⚠️ - the change is breaking the API and/or deprecate some parts of it. It theorically should only concern addons, so make sure to update them as well!
  • 🔠 - locale files may need to be regenerated or updated.
  • ⚙️ - config options have been removed, renamed or added.

Contents

  • API
  1. Added/fixed some Javadoc in a few classes.
  2. ⚠️ IslandsManager: renamed #getCount() to #getIslandCount(); renamed #makeLeader(...) methods to #setOwner(...).
  3. Added Addon#getPermissionPrefix(): it is a method that returns the permission prefix automagically generated from the addon's name.
  4. ⚠️ Removed CompositeCommand#setPermissionPrefix(String): it is now inherited from the Addon's.
  5. ⚠️ Renamed AdminTeamMakeLeaderCommand to AdminTeamSetownerCommand.
  6. ⚠️ Renamed TeamEvent.TeamMakeLeaderEvent to TeamEvent.TeamSetownerEvent.
  7. ⚠️ Lowercased some command class names to better fit how they are actually working in game : AdminClearresetsallCommand, AdminClearresetsCommand, AdminGetrankCommand, AdminSetrankCommand.
  8. ⚠️ Replaced Addon#setEnabled(boolean) by Addon#setState(Addon.State).
  9. Removed YmlConfiguration and YmlCommentParser as they weren't used.
  10. AddonsManager: removed #loadAddonsFromFile(), renamed #setLoader(...) to #setLoaders(...).
  11. ⚠️ ⚙️ DatabaseSetup.DatabaseType: renamed MONGO to MONGODB.
  12. ⚠️ DatabaseConnector: removed #loadYamlFile(...) and #saveYamlFile(...) as they weren't generic to all database connectors.
  13. Added AbstractJSONDatabaseHandler<T>.
  14. ⚠️ Made all DatabaseHandlers' and DatabaseConnectors' constructors package-private: these shouldn't have been used by any external plugin/addon.
  15. ⚠️ Moved TypeAdapters in database/json/adapters package.
  16. ⚠️ Moved DATABASE_FOLDER_NAME to AbstractDatabaseHandler<T>.
  17. ⚠️ ⚙️ Renamed FLATFILE database type (and related files) to YAML.
  18. Fixed some code smells.
  19. Implemented the Hooks API: Hook and HooksManager.
  20. Implemented Vault integration: VaultHook.
  21. ⚠️ Removed AddonInterface and put its methods in Addon.
  • Features
  1. Implemented Vault integration: money reset on island join/leave should now be working.
  • Tweaks
  1. Changed the command /is team setleader <player> to /is team setowner <player>.
  2. ⚙️ general.database.type: renamed FLATFILE to YAML, added JSON and renamed MONGO to MONGODB.
  3. ⚙️ Renamed island.customranks to island.custom-ranks and made it experimental (Spooky!).
  4. Added some safety checks to the config loading: some options will now be using their default value if the one in the configuration is invalid, instead of throwing ugly stacktraces.
  • Bug fixes
  1. 🔠 Fixed some entries in the en-US locale being invalid.
  2. Fixed island protection range not being updated after a login if there was a permission change (#256).
  3. Fixed outdated addons causing errors in console when loading (#281).
  4. Fixed the AddonsManager disabling not-enabled addons.
  5. Fixed the [label] text variable being replaced by "invite" in the invite notification (#315).
  6. Fixed island members sometimes not being recognized and therefore considered as visitors on their own island (#318).
  7. Fixed [version] text variable in config comments always being replaced by BentoBox's version instead of the addon's (#312).