/// <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) { foreach (var p in GetAllPlayers(true)) { _packetsHelper.SendCharacterTeleport(p.Client, character, teleportedByAdmin); } }
/// <summary> /// Teleports player to new position. /// </summary> public void TeleportPlayer(Character character) { foreach (var p in GetAllPlayers(true)) { if (p != character) { _packetsHelper.SendCharacterTeleport(p.Client, character); } } }