fix npe
This commit is contained in:
@@ -2756,9 +2756,8 @@ public class GriefPrevention extends JavaPlugin
|
||||
UUID bestMatchID = this.playerNameToIDMap.get(name);
|
||||
|
||||
//if failed, try ignore case
|
||||
if (bestMatchID == null)
|
||||
if (bestMatchID != null)
|
||||
{
|
||||
bestMatchID = this.playerNameToIDMap.get(name.toLowerCase());
|
||||
return this.getServer().getOfflinePlayer(bestMatchID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user