mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 11:44:42 +02:00
Use player objects instead of names - should be more efficient and less
buggy.
This commit is contained in:
@ -73,9 +73,11 @@ public final class UserManager {
|
||||
*/
|
||||
public static McMMOPlayer getPlayer(String playerName) {
|
||||
List<Player> matches = mcMMO.p.getServer().matchPlayer(playerName);
|
||||
|
||||
if (matches.size() == 1) {
|
||||
playerName = matches.get(0).getName();
|
||||
}
|
||||
|
||||
return players.get(playerName);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user