[SECURITY] Add privilege handling to /um set

This commit is contained in:
1F616EMO 2024-12-15 07:12:48 +08:00
parent 189dc8bdb6
commit 3eb7992876
No known key found for this signature in database
GPG Key ID: EF52EFA8E05859B2

View File

@ -68,6 +68,9 @@ cmd:sub("get :username", {
cmd:sub("set :username :val:int", {
description = _utc.set_balance(),
privs = {
server = true
},
func = function(_, username, val)
local status = unified_money.set_balance(username, val)
if status then