dirty fix for trusting offline players

This commit is contained in:
destro174 2022-03-19 20:49:46 +01:00
parent 7fa1832acd
commit 190f5cc1c0

View File

@ -2782,13 +2782,10 @@ public class GriefPrevention extends JavaPlugin
if (bestMatchID == null)
{
bestMatchID = this.playerNameToIDMap.get(name.toLowerCase());
}
if (bestMatchID == null)
{
return null;
return this.getServer().getOfflinePlayer(bestMatchID);
}
return this.getServer().getOfflinePlayer(bestMatchID);
return this.getServer().getOfflinePlayer(name);
}
//helper method to resolve a player name from the player's UUID