if (!activeChar.getPlayerAccess().CanEditCharAll)
{
activeChar.sendMessage("You have not enough privileges, for use this function.");
return;
}
final GameObject target = activeChar.getTarget();
if (target == null)
{
activeChar.sendPacket(Msg.SELECT_TARGET);
return;
}
if (!target.isPlayable())
{
activeChar.sendPacket(Msg.INVALID_TARGET);
return;
}
Playable playable = (Playable) target;