Files
RandomScriptsforAzerothCore/reload_scripts.lua

11 lines
345 B
Lua
Raw Normal View History

2023-02-08 11:34:43 -07:00
function reloadElunaEngine(event, player, command)
if command == "reload scripts" or command == "reloadscripts" then
if player == nil or player:IsGM() then -- console or gm
ReloadEluna()
else
player:SendBroadcastMessage("Turn <GM> mode on for access to this command")
end
end
end
RegisterPlayerEvent(42, reloadElunaEngine)