We don't want to pass a lowercase playerName to new PlayerProfiles yet...

This commit is contained in:
nossr50 2012-03-22 14:19:35 -07:00
parent fc4709fe27
commit ab50b32f60

View File

@ -43,7 +43,7 @@ public class Users {
*/ */
public static void addUser(Player player) { public static void addUser(Player player) {
if (!players.containsKey(player.getName().toLowerCase())) { if (!players.containsKey(player.getName().toLowerCase())) {
players.put(player.getName().toLowerCase(), new PlayerProfile(player.getName().toLowerCase())); players.put(player.getName().toLowerCase(), new PlayerProfile(player.getName()));
} }
} }
@ -97,7 +97,7 @@ public class Users {
return players.get(player.getName().toLowerCase()); return players.get(player.getName().toLowerCase());
} }
else { else {
players.put(player.getName().toLowerCase(), new PlayerProfile(player.getName().toLowerCase())); players.put(player.getName().toLowerCase(), new PlayerProfile(player.getName()));
return players.get(player.getName().toLowerCase()); return players.get(player.getName().toLowerCase());
} }
} }
@ -113,7 +113,7 @@ public class Users {
return players.get(playerName.toLowerCase()); return players.get(playerName.toLowerCase());
} }
else { else {
players.put(playerName.toLowerCase(), new PlayerProfile(playerName.toLowerCase())); players.put(playerName.toLowerCase(), new PlayerProfile(playerName));
return players.get(playerName.toLowerCase()); return players.get(playerName.toLowerCase());
} }
} }