Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PlayerModel { // Base Model of other models
- @DBSync
- public String uuid;
- @DBSync
- public String username;
- @DBSync
- public String originalName;
- @DBSync
- public List<UsernameModel> names;
- }
- public class FriendModel extends PlayerModel { // The root document structure of the database document
- @DBSync
- public List<UserModel> followers;
- }
- public class UserModel extends PlayerModel { // user model, currently empty, but has player's fields
- }
- public class UsernameModel { // username model, used in PlayerModel
- @DBSync public String name;
- @DBSync public long changedToAt;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement