DAOs were deprecated, replaced needed methods in mongo player data instead

This commit is contained in:
spacerocket62
2020-10-27 21:11:23 -07:00
parent f9630c9597
commit e75b5f3d87
8 changed files with 50 additions and 91 deletions

View File

@ -33,10 +33,12 @@ public class PlexPlayer
private long coins;
private Rank rank;
private String rank;
private List<String> ips;
public PlexPlayer() {}
public PlexPlayer(UUID playerUUID)
{
this.uuid = playerUUID.toString();
@ -52,6 +54,11 @@ public class PlexPlayer
this.ips = new ArrayList<>();
this.rank = null;
this.rank = "";
}
public Rank getRankFromString()
{
return Rank.valueOf(rank.toUpperCase());
}
}