/// <summary> /// Teleports player to new position. /// </summary> /// <param name="character">Player to teleport</param> /// <param name="teleportedByAdmin">Indicates whether the teleport was issued by an admin or not</param> public void TeleportPlayer(Character character, bool teleportedByAdmin) { if (teleportedByAdmin) { foreach (var p in GetAllPlayers(true)) { _packetsHelper.SendGmTeleport(p.Client, character); } } else { foreach (var p in GetAllPlayers(true)) { _packetsHelper.SendCharacterTeleport(p.Client, character); } } }