Further Dynmap error catching

This commit is contained in:
Brettflan 2013-05-17 18:05:56 -05:00
parent 3c32f68a7d
commit b42945d643

View File

@ -59,6 +59,11 @@ public class DynMapFeatures
Config.LogConfig("DynMap is available, but border display is currently disabled: you need DynMap v0.36 or newer."); Config.LogConfig("DynMap is available, but border display is currently disabled: you need DynMap v0.36 or newer.");
return; return;
} }
catch (NullPointerException ex)
{
Config.LogConfig("DynMap is present, but an NPE (type 1) was encountered while trying to integrate. Border display disabled.");
return;
}
try try
{ {
@ -67,7 +72,7 @@ public class DynMapFeatures
} }
catch (NullPointerException ex) catch (NullPointerException ex)
{ {
Config.LogConfig("DynMap is present, but a NullPointerException was encountered while attempting to integrate. Border display disabled."); Config.LogConfig("DynMap is present, but an NPE (type 2) was encountered while trying to integrate. Border display disabled.");
return; return;
} }