dirty fix for trusting offline players
This commit is contained in:
parent
7fa1832acd
commit
190f5cc1c0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user