Fix offline trusting?
This commit is contained in:
parent
56ad239cbc
commit
f2e6443c4f
|
|
@ -2808,8 +2808,10 @@ public class GriefPrevention extends JavaPlugin
|
||||||
Player targetPlayer = this.getServer().getPlayerExact(name);
|
Player targetPlayer = this.getServer().getPlayerExact(name);
|
||||||
if (targetPlayer != null) return targetPlayer;
|
if (targetPlayer != null) return targetPlayer;
|
||||||
|
|
||||||
|
UUID bestMatchID = null;
|
||||||
|
|
||||||
//try exact match first
|
//try exact match first
|
||||||
UUID bestMatchID = this.playerNameToIDMap.get(name);
|
bestMatchID = this.playerNameToIDMap.get(name);
|
||||||
|
|
||||||
//if failed, try ignore case
|
//if failed, try ignore case
|
||||||
if (bestMatchID == null)
|
if (bestMatchID == null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user