Add some more motds to the banned servers.
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
| @@ -60,8 +60,10 @@ public class LibsDisguises extends JavaPlugin { | ||||
|             if (offline.isOp()) | ||||
|                 return; | ||||
|         } | ||||
|         if (Bukkit.getMotd().toLowerCase().contains("archergames")) { | ||||
|             return; | ||||
|         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")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user