2020-08-17 01:22:31 +00:00
|
|
|
package party._2a03.mc.util;
|
2020-01-07 15:53:42 +00:00
|
|
|
|
|
|
|
import org.json.JSONArray;
|
|
|
|
import org.json.JSONObject;
|
2020-08-17 01:22:31 +00:00
|
|
|
import party._2a03.mc.util.PlayerPosition;
|
2020-01-07 15:53:42 +00:00
|
|
|
|
|
|
|
public class PlayerData {
|
|
|
|
private String uuid;
|
|
|
|
private PlayerPosition home;
|
|
|
|
|
|
|
|
public PlayerData(String p_uuid, PlayerPosition p_home) {
|
|
|
|
this.uuid = p_uuid;
|
|
|
|
this.home = p_home;
|
|
|
|
}
|
|
|
|
|
|
|
|
public PlayerPosition getHome() {
|
|
|
|
return this.home;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getUUID() {
|
|
|
|
return this.uuid;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHome(PlayerPosition location) {
|
|
|
|
this.home = location;
|
|
|
|
}
|
|
|
|
|
|
|
|
public JSONObject getJSON() {
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
|
json.put("uuid", uuid);
|
|
|
|
json.put("home", home.getJSON());
|
|
|
|
return json;
|
|
|
|
}
|
2020-08-17 01:22:31 +00:00
|
|
|
}
|