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
@@ -43,20 +43,21 @@ import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.logging.Level;
|
||||
|
||||
/**
|
||||
* Hook to display warps and public homes on <a href="https://github.com/BlueMap-Minecraft/BlueMap">BlueMap</a> maps.
|
||||
*/
|
||||
@PluginHook(
|
||||
name = "BlueMap",
|
||||
register = PluginHook.Register.ON_ENABLE
|
||||
)
|
||||
public class BlueMapHook extends MapHook {
|
||||
|
||||
private Map<String, MarkerSet> publicHomesMarkerSets;
|
||||
private Map<String, MarkerSet> warpsMarkerSets;
|
||||
|
||||
public BlueMapHook(@NotNull HuskHomes plugin) {
|
||||
super(plugin, "BlueMap");
|
||||
super(plugin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
public void load() {
|
||||
BlueMapAPI.onEnable(api -> {
|
||||
this.publicHomesMarkerSets = new ConcurrentHashMap<>();
|
||||
this.warpsMarkerSets = new ConcurrentHashMap<>();
|
||||
@@ -81,7 +82,7 @@ public class BlueMapHook extends MapHook {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateHome(@NotNull Home home) {
|
||||
public void addHome(@NotNull Home home) {
|
||||
if (!isValidPosition(home)) {
|
||||
return;
|
||||
}
|
||||
@@ -121,7 +122,7 @@ public class BlueMapHook extends MapHook {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateWarp(@NotNull Warp warp) {
|
||||
public void addWarp(@NotNull Warp warp) {
|
||||
if (!isValidPosition(warp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user