internal static void Despawn(Player dst, byte id) { dst.SendRaw(Opcode.RemoveEntity, id); if (!Server.TablistGlobal) { TabList.Remove(dst, id); } }
internal static void Despawn(Player dst, PlayerBot b) { dst.SendRaw(Opcode.RemoveEntity, b.id); if (Server.TablistBots) { TabList.Remove(dst, b.id); } }
internal static void Despawn(Player dst, PlayerBot b) { OnEntityDespawnedEvent.Call(b, dst); dst.Send(Packet.RemoveEntity(b.id)); if (Server.Config.TablistBots) { TabList.Remove(dst, b); } }
public static void Despawn(Player dst, PlayerBot b) { OnEntityDespawnedEvent.Call(b, dst); dst.Session.SendRemoveEntity(b.id); if (Server.Config.TablistBots) { TabList.Remove(dst, b); } }
internal static void Despawn(Player dst, Player other) { OnEntityDespawnedEvent.Call(other, dst); byte id = other == dst ? SelfID : other.id; dst.Send(Packet.RemoveEntity(id)); if (!Server.Config.TablistGlobal) { TabList.Remove(dst, other); } }