From 602bde7bc567521ba65b894146f346c62d42cb99 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 29 Mar 2012 18:43:53 -0700 Subject: [PATCH] A fix for Spout disabling itself --- src/main/java/com/gmail/nossr50/mcMMO.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index f5c72c8f6..743f5d214 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -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() {