mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-06 09:36:40 +00:00
yes
you can call me a god mongodb storing is done
This commit is contained in:
@ -4,8 +4,10 @@ import dev.morphia.annotations.Entity;
|
||||
import dev.morphia.annotations.Id;
|
||||
import dev.morphia.annotations.IndexOptions;
|
||||
import dev.morphia.annotations.Indexed;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import me.totalfreedom.plex.rank.Rank;
|
||||
import me.totalfreedom.plex.storage.MongoConnection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -18,22 +20,24 @@ import java.util.UUID;
|
||||
@Entity(value = "players", noClassnameStored = true)
|
||||
public class PlexPlayer
|
||||
{
|
||||
@Setter(AccessLevel.NONE)
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
@Setter(AccessLevel.NONE)
|
||||
@Indexed(options = @IndexOptions(unique = true))
|
||||
private String uuid;
|
||||
|
||||
@Indexed
|
||||
private String name;
|
||||
|
||||
private String loginMSG;
|
||||
private String prefix;
|
||||
|
||||
private Rank rank;
|
||||
|
||||
private List<String> ips;
|
||||
|
||||
private boolean muted;
|
||||
private boolean frozen;
|
||||
|
||||
//insert Rank check
|
||||
|
||||
public PlexPlayer(){}
|
||||
|
||||
public PlexPlayer(UUID playerUUID)
|
||||
@ -44,10 +48,12 @@ public class PlexPlayer
|
||||
|
||||
this.name = "";
|
||||
|
||||
this.loginMSG = "";
|
||||
this.prefix = "";
|
||||
|
||||
this.ips = new ArrayList<>();
|
||||
|
||||
this.muted = false;
|
||||
this.frozen = false;
|
||||
this.rank = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user