eluna-scripts-ornfelt/lua/WowEmulationScriptPack/Lua/finished/Pull.lua

20 lines
757 B
Lua
Raw Permalink Normal View History

2023-08-16 00:50:59 +02:00
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)