parent
b79741c90f
commit
16865a5bf6
|
@ -186,6 +186,7 @@ local function handle_grant_command(caller, grantname, grantprivstr)
|
||||||
return false, privs_unknown
|
return false, privs_unknown
|
||||||
end
|
end
|
||||||
for priv, _ in pairs(grantprivs) do
|
for priv, _ in pairs(grantprivs) do
|
||||||
|
-- call the on_grant callbacks
|
||||||
core.run_priv_callbacks(grantname, priv, caller, "grant")
|
core.run_priv_callbacks(grantname, priv, caller, "grant")
|
||||||
end
|
end
|
||||||
core.set_player_privs(grantname, privs)
|
core.set_player_privs(grantname, privs)
|
||||||
|
@ -258,6 +259,7 @@ core.register_chatcommand("revoke", {
|
||||||
end
|
end
|
||||||
|
|
||||||
for priv, _ in pairs(revoke_privs) do
|
for priv, _ in pairs(revoke_privs) do
|
||||||
|
-- call the on_revoke callbacks
|
||||||
core.run_priv_callbacks(revoke_name, priv, name, "revoke")
|
core.run_priv_callbacks(revoke_name, priv, name, "revoke")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue