mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
11 lines
No EOL
280 B
Lua
11 lines
No EOL
280 B
Lua
local UnbindCommand = {}
|
|
local MSG_UNBIND = "#unbind"
|
|
|
|
local function UnbindInstances(event, player, msg, Type, lang)
|
|
if (msg:find(MSG_UNBIND)) then
|
|
player:UnbindAllInstances()
|
|
player:SendBroadcastMessage("All instances unbound.")
|
|
end
|
|
end
|
|
|
|
RegisterPlayerEvent(18, UnbindInstances) |