API:UnitWorld

UnitWorld

Example
/script DEFAULT_CHAT_FRAME:AddMessage(UnitWorld);

Returns World-1 in Candara.