Handle when Spout explodes during startup

This commit is contained in:
Mike Primm 2012-03-28 21:23:36 -05:00
parent 11b2123f14
commit bae2a48a83

View File

@ -73,6 +73,7 @@ import org.dynmap.common.DynmapPlayer;
import org.dynmap.common.DynmapServerInterface; import org.dynmap.common.DynmapServerInterface;
import org.dynmap.common.DynmapListenerManager.EventType; import org.dynmap.common.DynmapListenerManager.EventType;
import org.dynmap.markers.MarkerAPI; import org.dynmap.markers.MarkerAPI;
import org.getspout.spoutapi.plugin.SpoutPlugin;
public class DynmapPlugin extends JavaPlugin implements DynmapAPI { public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
private DynmapCore core; private DynmapCore core;
@ -1107,7 +1108,10 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
private boolean detectSpout() { private boolean detectSpout() {
Plugin p = this.getServer().getPluginManager().getPlugin("Spout"); Plugin p = this.getServer().getPluginManager().getPlugin("Spout");
return (p != null); if(p != null) {
return p.isEnabled();
}
return false;
} }
public boolean hasSpout() { public boolean hasSpout() {