1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00
kawari/resources/scripts/commands/gm/ChangeWeather.lua
Joshua Goins 6951f9448d Port GM commands to Lua
This removes a ton of implementation overlap between the two
command systems. For example, we had two different implementations
of unlocking aetherytes which is just unnecessary.

On the flipside, this makes implementing new GM commands just as
easy as writing debug ones. I moved the existing debug Lua
implementations into their GM counterparts and updated the USAGE
accordingly.
2025-06-28 10:27:56 -04:00

9 lines
202 B
Lua

required_rank = GM_RANK_DEBUG
command_sender = "[weather] "
function onCommand(args, player)
local id = args[1]
player:change_weather(id)
printf(player, "Changing weather to %s.", id)
end