Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the expansion level currently active on the server.
serverExpansionLevel = GetServerExpansionLevel()
Returns[]
- serverExpansionLevel
- number
Value | Enum | Description |
---|---|---|
LE_EXPANSION_LEVEL_CURRENT | ||
0 | LE_EXPANSION_CLASSIC | Vanilla / Classic Era |
1 | LE_EXPANSION_BURNING_CRUSADE | The Burning Crusade |
2 | LE_EXPANSION_WRATH_OF_THE_LICH_KING | Wrath of the Lich King |
3 | LE_EXPANSION_CATACLYSM | Cataclysm |
4 | LE_EXPANSION_MISTS_OF_PANDARIA | Mists of Pandaria |
5 | LE_EXPANSION_WARLORDS_OF_DRAENOR | Warlords of Draenor |
6 | LE_EXPANSION_LEGION | Legion |
7 | LE_EXPANSION_BATTLE_FOR_AZEROTH | Battle for Azeroth |
8 | LE_EXPANSION_SHADOWLANDS | Shadowlands |
9 | LE_EXPANSION_DRAGONFLIGHT | Dragonflight |
10 | LE_EXPANSION_WAR_WITHIN | The War Within |
Details[]
- This does not update on pre-patch and only when the expansion actually launches; requires a client restart to update, if still in-game.
Example[]
Before and after the Shadowlands global launch at November 23 2020 at 3:00 p.m. PST.
/dump GetServerExpansionLevel() -- 7 -> 8
Patch changes[]
Patch 9.0.1 (2020-10-13): Added.