mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
20 lines
No EOL
757 B
Lua
20 lines
No EOL
757 B
Lua
function Push(event, player, command)
|
|
if (player:GetGMRank() < 3) then
|
|
return
|
|
elseif (command:find("pull") ~= 1) then
|
|
return
|
|
else
|
|
if (command:find("pull dbc") == 1) then
|
|
player:SendBroadcastMessage("Pulling DBC . . .")
|
|
os.execute ('bash /embercore/data/dbc/PullDBC.sh &')
|
|
player:SendBroadcastMessage("DBC has been pulled. You may need to restart the server before the changes can take affect.")
|
|
return false
|
|
elseif (command:find("pull lua") == 1) then -- Add support for branches!!!
|
|
os.execute ('bash /embercore/bin/lua_scripts/PullLUA.sh')
|
|
player:SendBroadcastMessage("LUA has been pulled. You may need to wait a minute or two before reloading to see the changes.")
|
|
return false
|
|
end
|
|
end
|
|
end
|
|
|
|
RegisterPlayerEvent(42, Push) |