|
@@ -128,8 +128,11 @@ public class mcMMO extends JavaPlugin {
|
|
|
p = this;
|
|
|
setupFilePaths();
|
|
|
|
|
|
- SpoutStuff.setSpoutEnabled();
|
|
|
- SpoutStuff.preCacheFiles();
|
|
|
+ if (p.getServer().getPluginManager().getPlugin("Spout") != null) {
|
|
|
+ spoutEnabled = true;
|
|
|
+
|
|
|
+ SpoutStuff.preCacheFiles();
|
|
|
+ }
|
|
|
|
|
|
// Force the loading of config files
|
|
|
Config configInstance = Config.getInstance();
|
|
@@ -176,7 +179,6 @@ public class mcMMO extends JavaPlugin {
|
|
|
pluginManager.registerEvents(inventoryListener, this);
|
|
|
pluginManager.registerEvents(worldListener, this);
|
|
|
|
|
|
-
|
|
|
if (configInstance.getHardcoreEnabled()) {
|
|
|
pluginManager.registerEvents(hardcoreListener, this);
|
|
|
}
|