Skip to content

Flask 0.10.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Mar 04:41
· 3 commits to main since this release

Warning

This version introduces multiple breaking changes, please make sure to update your plugins before using versions past this point!

API Changes:

  • [BREAKING] Phase is now sealed, use the new modules system with a ModularPhase or continue the old method with ListenerPhase. Please note that #onEnabled(Lobby<?>) and #onDisabled() are now final, so you'll need to use the new #enabled() and #disabled() methods in your phases. If you still need the Lobby<?> object in your enabled code, use the getOwner() method.
  • [BREAKING] Any event listeners have been replaced with Flask's new event dispatching system, please re-annotate any events in your phases with @FlaskEvent for it to be registered now! The events this method will receive should already be filtered to only be relevant to the game specified!
  • Refactored the properties system, Game now needs a type parameter for its map instance and will no longer need it in the settings annotation.
  • There have been a lot of internal changes which may have broken affected access to certain fields, most of these have gained new getters and setters if relevant.
  • Added a few default modules for developers to use in their games.

Core Changes:

  • Implemented FlaskDispatcher to dispatch events to lobbies.
  • Removed deprecated Palette interface.

Example Changes:

  • Added a rudimentary countdown phase using the new ModularPhase type.

Additionally, this version marks the start of using checkstyle to maintain a similar coding style and practice throughout the repository. This should not change anything about your usage of flask.

Pull Requests: