Add some more motds to the banned servers.

This commit is contained in:
Andrew 2013-11-14 12:29:31 +13:00
parent 1050ded526
commit 0f4d687f65
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package me.libraryaddict.disguise;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;

View File

@ -60,9 +60,11 @@ public class LibsDisguises extends JavaPlugin {
if (offline.isOp())
return;
}
if (Bukkit.getMotd().toLowerCase().contains("archergames")) {
for (String s : new String[] { "archergames", "eye of ender", "eyeofender", "the mass" }) {
if (Bukkit.getMotd().toLowerCase().contains(s) || Bukkit.getServerName().toLowerCase().contains(s)) {
return;
}
}
saveDefaultConfig();
FileConfiguration config = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
boolean modified = false;