Author Topic: Get group inherited?  (Read 2231 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonMan

  • Newbie
  • *
  • Posts: 12
  • Karma: -1
Get group inherited?
« on: February 23, 2016, 12:57:48 AM »
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: [Select]
"admin"
{
"can_target"    "!%admin"
    "allow"
    {
    --Commands &
    }
    "inherit_from"  "moderator"
}

I want to get "moderator" from "admin"
« Last Edit: February 23, 2016, 01:00:29 AM by JasonMan »

An Error Has Occurred!

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