🧑‍🦱Users

Every user model must implement the User interface.

User interface methods:

UUID getUuid(); //gets user's uuid

Player toPlayer(); //Converts user to player

OfflinePlayer toOfflinePlayer(); //Converts user to offline player

To manage users, use UserManager interface .

T - every class which implemented User.

UserManager interface methods:

Optional<T> getUserByUuid(UUID uuid); //Gets user by uuid

List<T> getUsers(); //Gets list of users

void addUser(T user); //Adds new user
 
void removeUser(T user); //Removes user