Rewrite map hooks, use more modern APIs

This commit is contained in:
William278 committed 2023-03-22 12:12:53 +00:00
1 parent 167d5d6c7a
commit 98fa779046
15 files changed
+457 -463

No files matched your search

@@ -20,7 +20,7 @@ import java.util.logging.Level;
/**
* Hooks into Plan to provide the {@link PlanDataExtension} with stats on the web panel
*/
public class PlanHook extends PluginHook {
public class PlanHook extends Hook {
private final HuskHomes plugin;
@@ -30,13 +30,12 @@ public class PlanHook extends PluginHook {
}
@Override
public boolean initialize() {
public void initialize() {
if (!areAllCapabilitiesAvailable()) {
return false;
return;
}
registerDataExtension();
handlePlanReload();
return true;
}