revert 190f5c

This commit is contained in:
Len 2022-05-24 21:38:33 +02:00
parent 9f356fad31
commit 173bd794fe

View File

@ -2809,10 +2809,14 @@ public class GriefPrevention extends JavaPlugin
//if failed, try ignore case
if (bestMatchID == null)
{
return this.getServer().getOfflinePlayer(bestMatchID);
bestMatchID = this.playerNameToIDMap.get(name.toLowerCase());
}
if (bestMatchID == null)
{
return null;
}
return this.getServer().getOfflinePlayer(name);
return this.getServer().getOfflinePlayer(bestMatchID);
}
//helper method to resolve a player name from the player's UUID