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();
if (pm.getPlugin("Spout") != null) {
LoadProperties.spoutEnabled = true;
}
else {
LoadProperties.spoutEnabled = false;
}
Bukkit.getScheduler().scheduleSyncDelayedTask(this, new SpoutStart(this), 20); //Schedule Spout Activation 1 second after start-up
//Register events
pm.registerEvents(playerListener, this);
@ -144,16 +139,6 @@ public class mcMMO extends JavaPlugin {
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) {
//Plugin Metrics running in a new thread
new Thread(new Runnable() {