revert 190f5c
This commit is contained in:
parent
9f356fad31
commit
173bd794fe
|
|
@ -2809,10 +2809,14 @@ public class GriefPrevention extends JavaPlugin
|
||||||
//if failed, try ignore case
|
//if failed, try ignore case
|
||||||
if (bestMatchID == null)
|
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
|
//helper method to resolve a player name from the player's UUID
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user