refactor: Fabric 1.20.4, Sponge API v10, Java 17, Platform APIs (#562)

* deps: bump dependencies

* refactor: bukkit 1.17.1, Sponge v10, fabric 1.20.4

* refactor: release platform-specific API modules

* fix: checkstyle javadoc comment

* docs: update API docs

* docs: mention API platforms in events api docs
This commit is contained in:
William authored and GitHub committed 2024-02-12 11:18:50 +00:00
1 parent c0e079c46c
commit f8ad215b76
24 files changed
+227 -159

No files matched your search

+2
View File
@@ -24,6 +24,8 @@ HuskHomes provides a number of API events your plugin can listen to when certain
‡ Called on the server the player *is teleported from*; not necessarily where the executor of the teleport is.
## Events on Sponge & Fabric
> **Note:** Check the [[API]] introduction for details on targeting platforms
Sponge, which has a similar Event api as Bukkit, has equivalent events for all of the above, prefixed with `Sponge` (so HomeCreateEvent on Bukkit is SpongeHomeCreateEvent on Sponge).
Fabric uses callbacks for handling events. HuskHomes provides callback equivalents for all the above events. For instance, to handle what to do when someone creates a home, you can register a callback to handle what to do as follows: