mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-28 13:15:23 +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();
|
||||
}
|
||||
|
||||
if (Bukkit.getPluginManager().getPlugin("dynmap") != null) {
|
||||
if (Bukkit.getPluginManager().getPlugin("dynmap") != null
|
||||
&& GriefDefenderPlugin.getGlobalConfig().getConfig().dynmap.enabled) {
|
||||
this.dynmapProvider = new DynmapProvider();
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,9 @@
|
||||
@ConfigSerializable
|
||||
public class DynmapCategory {
|
||||
|
||||
@Setting("enabled")
|
||||
public boolean enabled = true;
|
||||
|
||||
@Setting("owner-styles")
|
||||
public Map<String, DynmapOwnerStyleCategory> ownerStyles = new HashMap<>();
|
||||
|
||||
|
@ -527,7 +527,8 @@ public void onServerAboutToStart(GameAboutToStartServerEvent event) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Sponge.getPluginManager().getPlugin("dynmap").isPresent()) {
|
||||
if (Sponge.getPluginManager().getPlugin("dynmap").isPresent()
|
||||
&& GriefDefenderPlugin.getGlobalConfig().getConfig().dynmap.enabled) {
|
||||
this.dynmapProvider = new DynmapProvider();
|
||||
}
|
||||
if (Sponge.getPluginManager().getPlugin("mcclans").isPresent()) {
|
||||
|
@ -35,6 +35,9 @@
|
||||
@ConfigSerializable
|
||||
public class DynmapCategory {
|
||||
|
||||
@Setting("enabled")
|
||||
public boolean enabled = true;
|
||||
|
||||
@Setting("owner-styles")
|
||||
public Map<String, DynmapOwnerStyleCategory> ownerStyles = new HashMap<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user