Revert "Changed how we find the players uuid for claimslist"
This reverts commit beaa0ca8a5.
This commit is contained in:
parent
beaa0ca8a5
commit
06109e617b
|
|
@ -2068,8 +2068,18 @@ public class GriefPrevention extends JavaPlugin
|
||||||
//otherwise try to find the specified player
|
//otherwise try to find the specified player
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OfflinePlayer otherPlayer = Bukkit.getServer().getOfflinePlayer(args[0]);
|
OfflinePlayer otherPlayer = this.resolvePlayerByName(args[0]);
|
||||||
uuid = otherPlayer.getUniqueId();
|
if (otherPlayer == null)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
uuid = UUID.fromString(args[0]);
|
||||||
|
} catch (IllegalArgumentException ignored) {
|
||||||
|
GriefPrevention.sendMessage(player, TextMode.Err, Messages.PlayerNotFound2);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
uuid = otherPlayer.getUniqueId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//load the target player's data
|
//load the target player's data
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user