mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-22 07:12:09 +01:00
Minor: Fixed NPE mentioned in last commit
This commit is contained in:
parent
730ea69e2f
commit
d706d3431f
@ -46,6 +46,7 @@ public class UserData {
|
||||
private List<SessionData> sessions;
|
||||
|
||||
public UserData(Player player, DemographicsData demData, Database db) {
|
||||
accessing = 0;
|
||||
uuid = player.getUniqueId();
|
||||
registered = player.getFirstPlayed();
|
||||
location = player.getLocation();
|
||||
@ -73,6 +74,7 @@ public class UserData {
|
||||
}
|
||||
|
||||
public UserData(OfflinePlayer player, DemographicsData demData, Database db) {
|
||||
accessing = 0;
|
||||
uuid = player.getUniqueId();
|
||||
registered = player.getFirstPlayed();
|
||||
isOp = player.isOp();
|
||||
|
Loading…
Reference in New Issue
Block a user