diff --git a/src/me/t0biii/ts/commands/Ts.java b/src/me/t0biii/ts/commands/Ts.java index b3f3d95..61af2cb 100644 --- a/src/me/t0biii/ts/commands/Ts.java +++ b/src/me/t0biii/ts/commands/Ts.java @@ -144,19 +144,13 @@ else if(args[0].equalsIgnoreCase("getip")){ YamlConfiguration fcfg = YamlConfiguration.loadConfiguration(filterfile); int anzahl = cfg.getInt("ts.anzahl"); int max = cfg.getInt("ts.max"); - int minusfilter = 0; List filter = fcfg.getStringList("ignore"); List cachelist = cfg.getStringList("ts.cache"); if(!pl.getConfig().getBoolean("options.realtime")){ - for(String Users : cachelist){ - if(filter.contains(Users)){ - minusfilter++; - } - } prefixsend(p); p.sendMessage(ChatColor.AQUA+"Teamspeak: "+ tsip + " §cCached"); - p.sendMessage(ChatColor.AQUA+"Online: §2"+ (anzahl- minusfilter) +" of " +max); + p.sendMessage(ChatColor.AQUA+"Online: §2"+ (anzahl) +" of " +max); p.sendMessage(ChatColor.AQUA+"List of People:"); for(String Users : cachelist){ if(!filter.contains(Users)){ @@ -165,14 +159,9 @@ else if(args[0].equalsIgnoreCase("getip")){ } prefixsend(p); }else{ - for(Client c : pl.api.getClients()){ - if(filter.contains(c.getNickname())){ - minusfilter++; - } - } prefixsend(p); p.sendMessage(ChatColor.AQUA+"Teamspeak: "+ tsip + " §2Realtime"); - p.sendMessage(ChatColor.AQUA+"Online: §2"+ (pl.api.getClients().size()- minusfilter) +" of " + pl.api.getHostInfo().getTotalMaxClients()); + p.sendMessage(ChatColor.AQUA+"Online: §2"+ (pl.api.getClients().size()) +" of " + pl.api.getHostInfo().getTotalMaxClients()); p.sendMessage(ChatColor.AQUA+"List of People:"); for (Client c : pl.api.getClients()) { if(!filter.contains(c.getNickname())){