mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
I always forget to add the new file ;_;
This commit is contained in:
parent
602bde7bc5
commit
da6755f703
38
src/main/java/com/gmail/nossr50/runnables/SpoutStart.java
Normal file
38
src/main/java/com/gmail/nossr50/runnables/SpoutStart.java
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
package com.gmail.nossr50.runnables;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
import org.getspout.spoutapi.SpoutManager;
|
||||||
|
import org.getspout.spoutapi.player.FileManager;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.mcMMO;
|
||||||
|
import com.gmail.nossr50.config.LoadProperties;
|
||||||
|
import com.gmail.nossr50.spout.SpoutStuff;
|
||||||
|
|
||||||
|
public class SpoutStart implements Runnable{
|
||||||
|
|
||||||
|
mcMMO plugin;
|
||||||
|
|
||||||
|
public SpoutStart(mcMMO m) {
|
||||||
|
plugin = m;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
if (Bukkit.getPluginManager().getPlugin("Spout") != null) {
|
||||||
|
LoadProperties.spoutEnabled = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
LoadProperties.spoutEnabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Spout Stuff
|
||||||
|
if (LoadProperties.spoutEnabled) {
|
||||||
|
SpoutStuff.setupSpoutConfigs();
|
||||||
|
SpoutStuff.registerCustomEvent();
|
||||||
|
SpoutStuff.extractFiles(); //Extract source materials
|
||||||
|
|
||||||
|
FileManager FM = SpoutManager.getFileManager();
|
||||||
|
FM.addToPreLoginCache(plugin, SpoutStuff.getFiles());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user