mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Handle when Spout explodes during startup
This commit is contained in:
parent
11b2123f14
commit
bae2a48a83
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user