1
0
minecraft-tweaks-2a03/src/main/java/party/_2a03/mc/util/PlayerData.java

35 lines
652 B
Java
Raw Normal View History

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
}