A fix for Spout disabling itself

This commit is contained in:
nossr50 2012-03-29 18:43:53 -07:00
parent e9d1297c17
commit 602bde7bc5

View File

@ -104,12 +104,7 @@ public class mcMMO extends JavaPlugin {
PluginManager pm = getServer().getPluginManager(); PluginManager pm = getServer().getPluginManager();
if (pm.getPlugin("Spout") != null) { Bukkit.getScheduler().scheduleSyncDelayedTask(this, new SpoutStart(this), 20); //Schedule Spout Activation 1 second after start-up
LoadProperties.spoutEnabled = true;
}
else {
LoadProperties.spoutEnabled = false;
}
//Register events //Register events
pm.registerEvents(playerListener, this); pm.registerEvents(playerListener, this);
@ -144,16 +139,6 @@ public class mcMMO extends JavaPlugin {
registerCommands(); registerCommands();
//Spout Stuff
if (LoadProperties.spoutEnabled) {
SpoutStuff.setupSpoutConfigs();
SpoutStuff.registerCustomEvent();
SpoutStuff.extractFiles(); //Extract source materials
FileManager FM = SpoutManager.getFileManager();
FM.addToPreLoginCache(this, SpoutStuff.getFiles());
}
if (LoadProperties.statsTracking) { if (LoadProperties.statsTracking) {
//Plugin Metrics running in a new thread //Plugin Metrics running in a new thread
new Thread(new Runnable() { new Thread(new Runnable() {