1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-10 16:07:45 +00:00
kawari/resources/scripts/commands/gm/Collect.lua

13 lines
375 B
Lua
Raw Normal View History

required_rank = GM_RANK_DEBUG
command_sender = "[collect] "
function onCommand(args, player)
local amount = tonumber(args[1])
if player.gil >= amount then
player:remove_gil(amount)
printf(player, "Collected %s gil.", amount)
else
printf(player, "Player does not have that much gil to take! They only possess %s.", player.gil)
end
end