eluna-scripts-ornfelt/lua/WowEmulationScriptPack/Lua/finished/Pull.lua
2024-09-23 07:59:23 +02:00

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)