mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
refactor: significantly refactor internals, remove Sponge (#708)
* feat: start database refactor Adds database migrations * refactor: refactor database system Now supports migrations * refactor: begin major internals rewrite move to using provider-style interfaces similar to huskclaims bukkit done, still need to do fabric and sponge * refactor: remove sponge, checkstyle Low usage and high maintenance time cost. We will examine Forge instead in the future. * refactor: implement refactoring changes on fabric also fix various refactor quirks on Bukkit * refactor: tidy metrics logic * build: bump deps
This commit is contained in:
1 parent
05bcad9249
commit
ffe995ef5f
162 files changed
+3890
-5730
No files matched your search
+1
-3
@@ -24,11 +24,9 @@ HuskHomes provides a number of API events your plugin can listen to when certain
|
||||
† If the player uses `/delhome all` or `/delwarp all` to delete all their homes or all the warps, a single `DeleteAllHomesEvent` or `DeleteAllWarpsEvent` is fired instead.
|
||||
‡ Called on the server the player *is teleported from*; not necessarily where the executor of the teleport is.
|
||||
|
||||
## Events on Sponge & Fabric
|
||||
## Events on 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:
|
||||
<details>
|
||||
<summary>HuskHomes and Fabric callbacks</summary>
|
||||
|
||||
Reference in new issue
Block a user