fix npe
This commit is contained in:
1 parent
0f39e4ef6d
commit
15fce9ad2c
1 file changed
+1
-2
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user