mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
We don't want to pass a lowercase playerName to new PlayerProfiles yet...
This commit is contained in:
parent
fc4709fe27
commit
ab50b32f60
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user