Multiple Messages From Disband Fixed

This commit is contained in:
Driftay
2020-03-25 15:50:19 -04:00
parent efae187e1a
commit 66ad927b2f
6 changed files with 19 additions and 8 deletions

View File

@@ -11,8 +11,7 @@ public class ReserveAdapter implements JsonSerializer<ReserveObject>, JsonDeseri
public ReserveObject deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
JsonObject object = jsonElement.getAsJsonObject();
ReserveObject faction = new ReserveObject(object.get("username").getAsString(), object.get("name").getAsString());
return faction;
return new ReserveObject(object.get("username").getAsString(), object.get("name").getAsString());
}
public JsonElement serialize(ReserveObject data, final Type type, final JsonSerializationContext jsonSerializationContext) {