From 7245a02c2f61f323a702888107c656dda5c07442 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Mon, 21 Aug 2017 13:30:44 +0300 Subject: [PATCH] More changes planned (Deprecations & Todos to UserData) --- .../com/djrapitops/plan/data/UserData.java | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/UserData.java b/Plan/src/main/java/com/djrapitops/plan/data/UserData.java index 5ec99f073..2497d2f24 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/UserData.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/UserData.java @@ -16,30 +16,31 @@ import java.util.stream.Collectors; * * @author Rsl1122 */ +// TODO Change to be only used for DB User Get Query responses. public class UserData { private final List sessions; private int accessing; private boolean clearAfterSave; private UUID uuid; - private String name; - private Set nicknames; - private String lastNick; - private String geolocation; - private Set ips; - private int loginTimes; - private int timesKicked; - private boolean isOp; - private boolean isBanned; - private boolean isOnline; - private int mobKills; - private List playerKills; - private int deaths; - private long registered; - private long lastPlayed; - private long playTime; - private GMTimes gmTimes; - private WorldTimes worldTimes; + private String name; //TODO DB Update code to JoinListener + @Deprecated private Set nicknames; //TODO DB Update code to ChatListener + @Deprecated private String lastNick; //TODO DB Update code to ChatListener + @Deprecated private String geolocation; //TODO DB Update code to JoinListener + @Deprecated private Set ips; //TODO DB Update code to JoinListener + @Deprecated private int loginTimes; // Moving to sessions.size + @Deprecated private int timesKicked; //TODO DB Update code to KickListener + @Deprecated private boolean isOp; //TODO DB Update code to JoinListener + @Deprecated private boolean isBanned; //TODO DB Update code to JoinListener + @Deprecated private boolean isOnline; //TODO New Class for getting online status of players + @Deprecated private int mobKills; //TODO Move to SessionData + @Deprecated private List playerKills; //TODO Move to SessionData + @Deprecated private int deaths; //TODO Move to SessionData + @Deprecated private long registered; //TODO DB Update code to JoinListener (When registering) + @Deprecated private long lastPlayed; //TODO DB Update code to Join, Refresh, QuitListener + @Deprecated private long playTime; //TODO Move to SessionData + @Deprecated private GMTimes gmTimes; //TODO Move to WorldTimes + @Deprecated private WorldTimes worldTimes; //TODO Move to SessionData /** * Creates a new UserData object with given values and default values.