mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Add Method
This commit is contained in:
1 parent
0bbd1b38f0
commit
66fce6a502
1 file changed
+10
-3
@@ -37,11 +37,18 @@ public class Storage {
|
||||
}
|
||||
|
||||
public static List<String> getServers() {
|
||||
return getServers(false);
|
||||
}
|
||||
|
||||
public static List<String> getServers(boolean withBlacklist) {
|
||||
List<String> servers = new ArrayList<>();
|
||||
if(Reflection.isVelocityServer())
|
||||
return VelocityLoader.getServerNames();
|
||||
servers.addAll(VelocityLoader.getServerNames());
|
||||
else if(Reflection.isProxyServer())
|
||||
return BungeeLoader.getServerNames();
|
||||
return null;
|
||||
servers.addAll(BungeeLoader.getServerNames());
|
||||
|
||||
if(withBlacklist) Blacklist.getBlacklistServers().stream().filter(server -> !servers.contains(server)).forEach(servers::add);
|
||||
return servers;
|
||||
}
|
||||
|
||||
public static boolean isServer(String originServer, Set<String> targetServers) {
|
||||
|
||||
Reference in new issue
Block a user