Archived
0

Fixed second protocol violation (again, again?)

This commit is contained in:
Pepich
2017-09-17 23:46:56 +02:00
parent 6f5b788736
commit ca47ef1e06

View File

@@ -19,7 +19,7 @@ import com.redstoner.misc.Main;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @AutoRegisterListener
@Version(major = 4, minor = 0, revision = 1, compatible = 4) @Version(major = 4, minor = 0, revision = 2, compatible = 4)
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public class OnlinePlayers implements Module, Listener public class OnlinePlayers implements Module, Listener
{ {
@@ -73,7 +73,7 @@ public class OnlinePlayers implements Module, Listener
for (Object obj : players) for (Object obj : players)
{ {
JSONObject o = (JSONObject) obj; JSONObject o = (JSONObject) obj;
if (((String) o.get("uuid")).equals(player.getUniqueId().toString())) if (((String) o.get("UUID")).equals(player.getUniqueId().toString()))
toRemove.add(obj); toRemove.add(obj);
} }
players.removeAll(toRemove); players.removeAll(toRemove);