WoW API: GetRealmName

Revision as of 22:25, 21 November 2009 by WoWWiki>Egingell (Removed "Details" section. It's not relevant to this function.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetRealmName

Returns the name of the realm (aka server) the player is currently on.

realmName = GetRealmName()

Arguments

None

Returns

realmName
String - The name of the realm.

Example

local realmName = GetRealmName()
DEFAULT_CHAT_FRAME:AddMessage("You are currently on realm: " .. realmName)
> You are currently on realm: Gorgonnash