mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-06 09:36:40 +00:00
DAOs were deprecated, replaced needed methods in mongo player data instead
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user