mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Attempt to fix Spout NoClassDefFoundError
This commit is contained in:
parent
bfa29cbf02
commit
d09cd49f01
@ -128,8 +128,11 @@ public class mcMMO extends JavaPlugin {
|
|||||||
p = this;
|
p = this;
|
||||||
setupFilePaths();
|
setupFilePaths();
|
||||||
|
|
||||||
SpoutStuff.setSpoutEnabled();
|
if (p.getServer().getPluginManager().getPlugin("Spout") != null) {
|
||||||
|
spoutEnabled = true;
|
||||||
|
|
||||||
SpoutStuff.preCacheFiles();
|
SpoutStuff.preCacheFiles();
|
||||||
|
}
|
||||||
|
|
||||||
// Force the loading of config files
|
// Force the loading of config files
|
||||||
Config configInstance = Config.getInstance();
|
Config configInstance = Config.getInstance();
|
||||||
@ -176,7 +179,6 @@ public class mcMMO extends JavaPlugin {
|
|||||||
pluginManager.registerEvents(inventoryListener, this);
|
pluginManager.registerEvents(inventoryListener, this);
|
||||||
pluginManager.registerEvents(worldListener, this);
|
pluginManager.registerEvents(worldListener, this);
|
||||||
|
|
||||||
|
|
||||||
if (configInstance.getHardcoreEnabled()) {
|
if (configInstance.getHardcoreEnabled()) {
|
||||||
pluginManager.registerEvents(hardcoreListener, this);
|
pluginManager.registerEvents(hardcoreListener, this);
|
||||||
}
|
}
|
||||||
|
@ -594,15 +594,6 @@ public class SpoutStuff {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setSpoutEnabled() {
|
|
||||||
if (plugin.getServer().getPluginManager().getPlugin("Spout") != null) {
|
|
||||||
mcMMO.spoutEnabled = true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mcMMO.spoutEnabled = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void preCacheFiles() {
|
public static void preCacheFiles() {
|
||||||
if (mcMMO.spoutEnabled) {
|
if (mcMMO.spoutEnabled) {
|
||||||
extractFiles(); //Extract source materials
|
extractFiles(); //Extract source materials
|
||||||
|
Loading…
Reference in New Issue
Block a user