for (Object obj : propsArray) {
JSONObject propJson = (JSONObject) obj;
String propName = (String) propJson.get("name");
String value = (String) propJson.get("value");
String signature = (String) propJson.get("signature");
properties.add(new PlayerProperty(propName, value, signature));
}
final AsyncPlayerPreLoginEvent event = EventFactory.onPlayerPreLogin(name, session.getAddress(), uuid);
if (event.getLoginResult() != AsyncPlayerPreLoginEvent.Result.ALLOWED) {
session.disconnect(event.getKickMessage(), true);