Spam check no longer uses scheduler; fixes #183

This commit is contained in:
h31ix committed 2013-02-26 18:24:43 -05:00
1 parent 2ceb16dcd2
commit b9b837663b
7 files changed
+102 -114

No files matched your search

@@ -74,6 +74,9 @@ public class Configuration {
langFile = new File(micromanage.getPlugin().getDataFolder() + "/lang.yml");
magicFile = new File(micromanage.getPlugin().getDataFolder() + "/magic.yml");
eventsFile = new File(micromanage.getPlugin().getDataFolder() + "/events.yml");
//
language = new Language(YamlConfiguration.loadConfiguration(langFile), langFile);
}
private void save() {
@@ -430,6 +430,18 @@ public final class Utilities {
}
return false;
}
/**
* Create a list with the given string for execution
*
* @param string the string to parse
* @return ArrayList with string
*/
public static ArrayList<String> stringToList(String string) {
ArrayList<String> i = new ArrayList<String>();
i.add(string);
return i;
}
static {
// START INSTANT BREAK MATERIALS