mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 20:48:19 +01:00
A fix for Spout disabling itself
This commit is contained in:
parent
e9d1297c17
commit
602bde7bc5
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user