Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. private static HashMap<UUID, User> users = new HashMap<UUID, User>();
  2.  
  3. public static HashMap<UUID, User> getUsers(){
  4. return users;
  5. }
  6.  
  7. public static User createUser(OfflinePlayer p){
  8. User u = new User(p.getUniqueId(), p.getName(), MySQL.getRank(p.getUniqueId()), MySQL.getKills(p.getUniqueId()), MySQL.getDeaths(p.getUniqueId()), MySQL.getKD(p.getUniqueId()));
  9. users.put(p.getUniqueId(), u);
  10. /*u.setUuid(p.getUniqueId());
  11. u.setName(p.getName());
  12. u.setRank(MySQL.getRank(p.getUniqueId()));
  13. u.setKills(MySQL.getKills(p.getUniqueId()));
  14. u.setDeaths(MySQL.getDeaths(p.getUniqueId()));*/
  15. return u;
  16. }
  17. public static User getUser(UUID uuid){
  18. return users.get(uuid);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement