Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static HashMap<UUID, User> users = new HashMap<UUID, User>();
- public static HashMap<UUID, User> getUsers(){
- return users;
- }
- public static User createUser(OfflinePlayer p){
- User u = new User(p.getUniqueId(), p.getName(), MySQL.getRank(p.getUniqueId()), MySQL.getKills(p.getUniqueId()), MySQL.getDeaths(p.getUniqueId()), MySQL.getKD(p.getUniqueId()));
- users.put(p.getUniqueId(), u);
- /*u.setUuid(p.getUniqueId());
- u.setName(p.getName());
- u.setRank(MySQL.getRank(p.getUniqueId()));
- u.setKills(MySQL.getKills(p.getUniqueId()));
- u.setDeaths(MySQL.getDeaths(p.getUniqueId()));*/
- return u;
- }
- public static User getUser(UUID uuid){
- return users.get(uuid);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement