Fix offline trusting?

This commit is contained in:
Len 2022-06-19 12:56:28 +02:00
parent 56ad239cbc
commit f2e6443c4f

View File

@ -2808,8 +2808,10 @@ public class GriefPrevention extends JavaPlugin
Player targetPlayer = this.getServer().getPlayerExact(name);
if (targetPlayer != null) return targetPlayer;
UUID bestMatchID = null;
//try exact match first
UUID bestMatchID = this.playerNameToIDMap.get(name);
bestMatchID = this.playerNameToIDMap.get(name);
//if failed, try ignore case
if (bestMatchID == null)