Fix dynmap warp command popup, auto-detect map plugin

This commit is contained in:
William278 committed 2023-03-23 12:12:57 +00:00
1 parent 18c739246b
commit d158973450
5 files changed
+16 -54

No files matched your search

@@ -6,7 +6,6 @@ import net.william278.annotaml.YamlKey;
import net.william278.huskhomes.command.Command;
import net.william278.huskhomes.database.Database;
import net.william278.huskhomes.hook.EconomyHook;
import net.william278.huskhomes.hook.MapHook;
import net.william278.huskhomes.network.Broker;
import org.jetbrains.annotations.NotNull;
@@ -244,12 +243,9 @@ public class Settings {
}
// Mapping plugins
@YamlComment("Display public homes/warps on web maps (DYNMAP, BLUEMAP)")
@YamlComment("Display public homes/warps on your web map (supports Dynmap and BlueMap)")
@YamlKey("map_hook.enabled")
private boolean doMapHook = false;
@YamlKey("map_hook.map_plugin")
private MapHook.Plugin type = MapHook.Plugin.DYNMAP;
private boolean doMapHook = true;
@YamlKey("map_hook.show_public_homes")
private boolean publicHomesOnMap = true;
@@ -479,10 +475,6 @@ public class Settings {
return doMapHook;
}
public MapHook.Plugin getMappingPlugin() {
return type;
}
public boolean doPublicHomesOnMap() {
return publicHomesOnMap;
}