GetWorldName
ESO Lua API function — used by 454 of the 3,030 addons we indexed (combined 77,613,313 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetWorldName()Returns: string worldName
Real usage — from HarvestMap
g_guildId = GUILD_IDS[GetWorldName()]
if not g_guildId then return end -- eg PTS serverShort excerpt from the shipping addon HarvestMap — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| HarvestMap | 9,454,533 |
| Code's Combat Alerts | 4,445,158 |
| LibSets (All set items ingame & preview. lua API + excel sheet) | 4,357,189 |
| LibDebugLogger | 3,648,435 |
| HodorReflexes - DPS & ULT tracker | 3,446,840 |
| Inventory Insight | 2,763,446 |