mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-02-27 03:41:46 +01:00
Added dynmapProvider toggle (#144)
This commit is contained in:
parent
9434871d17
commit
189187fd25
@ -464,7 +464,8 @@ public void onEnable() {
|
|||||||
this.essentialsProvider = new EssentialsProvider();
|
this.essentialsProvider = new EssentialsProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Bukkit.getPluginManager().getPlugin("dynmap") != null) {
|
if (Bukkit.getPluginManager().getPlugin("dynmap") != null
|
||||||
|
&& GriefDefenderPlugin.getGlobalConfig().getConfig().dynmap.enabled) {
|
||||||
this.dynmapProvider = new DynmapProvider();
|
this.dynmapProvider = new DynmapProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,9 @@
|
|||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
public class DynmapCategory {
|
public class DynmapCategory {
|
||||||
|
|
||||||
|
@Setting("enabled")
|
||||||
|
public boolean enabled = true;
|
||||||
|
|
||||||
@Setting("owner-styles")
|
@Setting("owner-styles")
|
||||||
public Map<String, DynmapOwnerStyleCategory> ownerStyles = new HashMap<>();
|
public Map<String, DynmapOwnerStyleCategory> ownerStyles = new HashMap<>();
|
||||||
|
|
||||||
|
@ -527,7 +527,8 @@ public void onServerAboutToStart(GameAboutToStartServerEvent event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Sponge.getPluginManager().getPlugin("dynmap").isPresent()) {
|
if (Sponge.getPluginManager().getPlugin("dynmap").isPresent()
|
||||||
|
&& GriefDefenderPlugin.getGlobalConfig().getConfig().dynmap.enabled) {
|
||||||
this.dynmapProvider = new DynmapProvider();
|
this.dynmapProvider = new DynmapProvider();
|
||||||
}
|
}
|
||||||
if (Sponge.getPluginManager().getPlugin("mcclans").isPresent()) {
|
if (Sponge.getPluginManager().getPlugin("mcclans").isPresent()) {
|
||||||
|
@ -35,6 +35,9 @@
|
|||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
public class DynmapCategory {
|
public class DynmapCategory {
|
||||||
|
|
||||||
|
@Setting("enabled")
|
||||||
|
public boolean enabled = true;
|
||||||
|
|
||||||
@Setting("owner-styles")
|
@Setting("owner-styles")
|
||||||
public Map<String, DynmapOwnerStyleCategory> ownerStyles = new HashMap<>();
|
public Map<String, DynmapOwnerStyleCategory> ownerStyles = new HashMap<>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user