Checks markerAPIInitialized during dynmap initialization
This commit is contained in:
@@ -30,7 +30,7 @@ public final class DynmapManager {
|
||||
* @throws NullPointerException <p>If dynmap has an invalid state</p>
|
||||
*/
|
||||
public static void initialize(DynmapAPI dynmapAPI) throws NullPointerException {
|
||||
if (dynmapAPI == null || dynmapAPI.getMarkerAPI() == null) {
|
||||
if (dynmapAPI == null || !dynmapAPI.markerAPIInitialized() || dynmapAPI.getMarkerAPI() == null) {
|
||||
markerSet = null;
|
||||
portalIcon = null;
|
||||
} else {
|
||||
|
@@ -106,6 +106,8 @@ public final class StargateConfig {
|
||||
|
||||
//Set up vault economy if vault has been loaded
|
||||
setupVaultEconomy();
|
||||
|
||||
//Set up dynmap
|
||||
DynmapAPI dynmapAPI = (DynmapAPI) Bukkit.getPluginManager().getPlugin("dynmap");
|
||||
if (dynmapAPI != null) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user