Add some more motds to the banned servers.
This commit is contained in:
parent
1050ded526
commit
0f4d687f65
@ -2,7 +2,6 @@ package me.libraryaddict.disguise;
|
|||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
@ -60,9 +60,11 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
if (offline.isOp())
|
if (offline.isOp())
|
||||||
return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
saveDefaultConfig();
|
saveDefaultConfig();
|
||||||
FileConfiguration config = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
|
FileConfiguration config = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
|
||||||
boolean modified = false;
|
boolean modified = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user