mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 10:22:22 -04:00
11 lines
345 B
Lua
11 lines
345 B
Lua
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) |