LibIsClassic

A small embeddable library to detect if you're on Retail or Classic servers.

LibIsClassic-1.0

A small embeddable library to detect if you're on Retail or Classic servers.

Version Tracker


The Quick Intro

This library is designed to be directly embedded into your addon.

Ace3 method:

MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon", "LibIsClassic-1.0")

Non-Ace3 method:

local _, MyAddon = ...
MyAddon = LibStub("LibIsClassic-1.0"):Embed(MyAddon)

Standalone method (no embedding):

local LIC = LibStub("LibIsClassic-1.0")

This library provides a few functions for your addon to use. These functions are self-explanatory:

  • MyAddon:IsRetail() - returns true on modern retail servers and false on other servers
  • MyAddon:IsClassic() - returns true on Classic Era (1.13.x) servers and false on other servers
  • MyAddon:IsBurningCrusadeClassic() - returns true on Burning Crusade Classic (2.5.x) servers and false on other servers

Example

if self:IsRetail() then

-- do stuff that doesn't apply to 1.13.x or 2.5.x

end

if not self:IsBurningCrusadeClassic() then

-- do stuff that only applies to 1.13.x and retail

end


Support

Twitter Twooter Discord

Twitch GitHub PayPal Coffee

The LibIsClassic Team

profile avatar
  • 10
    Followers
  • 27
    Projects
  • 8.8M
    Downloads
Donate

More from RavendwyrView all

  • HandyNotes Lunar Festival project image

    HandyNotes Lunar Festival

    • 1.2M
    • Addons

    Displays the locations of Lunar Festival elders.

    • 1.2M
    • February 23, 2026
    • Addons
    • +2
  • Pet Emote project image

    Pet Emote

    • 137.1K
    • Addons

    Allows you to send emotes from Hunter, Warlock, Death Knight and Mage pets.

    • 137.1K
    • March 6, 2025
    • Addons
    • +4
  • HandyNotes Hallow's End project image

    HandyNotes Hallow's End

    • 1.4M
    • Addons

    Marks the locations of Hallow's End candy buckets on the worldmap and minimap.

    • 1.4M
    • November 3, 2024
    • Addons
    • +2
  • AutoEquipQuestItem project image

    AutoEquipQuestItem

    • 41.2K
    • Addons

    Adds a button to the quest completion interface which allows you to auto equips selected quest Item after completion

    • 41.2K
    • October 1, 2016
    • Addons
    • +1
  • HandyNotes Lunar Festival project image

    HandyNotes Lunar Festival

    • 1.2M
    • Addons

    Displays the locations of Lunar Festival elders.

    • 1.2M
    • February 23, 2026
    • Addons
    • +2
  • Pet Emote project image

    Pet Emote

    • 137.1K
    • Addons

    Allows you to send emotes from Hunter, Warlock, Death Knight and Mage pets.

    • 137.1K
    • March 6, 2025
    • Addons
    • +4
  • HandyNotes Hallow's End project image

    HandyNotes Hallow's End

    • 1.4M
    • Addons

    Marks the locations of Hallow's End candy buckets on the worldmap and minimap.

    • 1.4M
    • November 3, 2024
    • Addons
    • +2
  • AutoEquipQuestItem project image

    AutoEquipQuestItem

    • 41.2K
    • Addons

    Adds a button to the quest completion interface which allows you to auto equips selected quest Item after completion

    • 41.2K
    • October 1, 2016
    • Addons
    • +1