General > Developers Corner

Get group inherited?

(1/1)

JasonMan:
Is there a way to get the group which group X inherits from, without reading groups.txt and some ugly sorting?
So for example (From groups.txt):

--- Code: ---"admin"
{
"can_target"    "!%admin"
    "allow"
    {
    --Commands &
    }
    "inherit_from"  "moderator"
}
--- End code ---

I want to get "moderator" from "admin"

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version