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/TerritoryInfo.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

11 lines
551 B
Lua

required_rank = GM_RANK_DEBUG
command_sender = "[teri_info] "
function onCommand(args, player)
local teri_info = "Territory Info for zone "..player.zone.id..":"
local current_weather = "Current weather: "..player.zone.weather_id
local internal_name = "Internal name: "..player.zone.internal_name
local region_name = "Region name: "..player.zone.region_name
local place_name = "Place name: "..player.zone.place_name
printf(player, teri_info.."\n"..current_weather.."\n"..internal_name.."\n"..region_name.."\n"..place_name)
end