Fixed Spout not being able to precache our resources properly, and

therefore making our XP bars fail. Fixes #587
This commit is contained in:
GJ
2013-01-30 00:08:19 -05:00
parent 74d9fa422f
commit bfa29cbf02
4 changed files with 25 additions and 20 deletions

View File

@@ -77,6 +77,7 @@ import com.gmail.nossr50.skills.taming.TamingCommand;
import com.gmail.nossr50.skills.unarmed.UnarmedCommand;
import com.gmail.nossr50.skills.woodcutting.WoodcuttingCommand;
import com.gmail.nossr50.spout.SpoutStart;
import com.gmail.nossr50.spout.SpoutStuff;
import com.gmail.nossr50.spout.commands.MchudCommand;
import com.gmail.nossr50.spout.commands.XplockCommand;
import com.gmail.nossr50.util.Anniversary;
@@ -127,6 +128,9 @@ public class mcMMO extends JavaPlugin {
p = this;
setupFilePaths();
SpoutStuff.setSpoutEnabled();
SpoutStuff.preCacheFiles();
// Force the loading of config files
Config configInstance = Config.getInstance();
TreasuresConfig.getInstance();
@@ -198,7 +202,7 @@ public class mcMMO extends JavaPlugin {
BukkitScheduler scheduler = getServer().getScheduler();
// Schedule Spout Activation 1 second after start-up
scheduler.scheduleSyncDelayedTask(this, new SpoutStart(this), 20);
scheduler.scheduleSyncDelayedTask(this, new SpoutStart(), 20);
// Periodic save timer (Saves every 10 minutes by default)
scheduler.scheduleSyncRepeatingTask(this, new SaveTimer(), 0, configInstance.getSaveInterval() * 1200);
// Regen & Cooldown timer (Runs every second)