fix npe
This commit is contained in:
parent
0f39e4ef6d
commit
15fce9ad2c
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user