This commit is contained in:
Len 2022-05-03 08:37:04 +02:00
parent 0f39e4ef6d
commit 15fce9ad2c

View File

@ -2756,9 +2756,8 @@ public class GriefPrevention extends JavaPlugin
UUID bestMatchID = this.playerNameToIDMap.get(name); UUID bestMatchID = this.playerNameToIDMap.get(name);
//if failed, try ignore case //if failed, try ignore case
if (bestMatchID == null) if (bestMatchID != null)
{ {
bestMatchID = this.playerNameToIDMap.get(name.toLowerCase());
return this.getServer().getOfflinePlayer(bestMatchID); return this.getServer().getOfflinePlayer(bestMatchID);
} }