Author Topic: Restrictions HELP?  (Read 1443 times)

0 Members and 1 Guest are viewing this topic.

Offline Chunkminecraft

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Restrictions HELP?
« on: August 26, 2015, 10:35:06 AM »
Ok I have made a new group called head admin which can do everything that an admin can do + it can change the player's group/rank. What I want to know is if you can prevent head admins from making themselves superadmins/making anyone else a superadmin. But head admins still need to be able to make people admin and demote them to user if the admin abuses/is rubbish. (I want to be the only superadmin on my server so people cannot mess up ranks etc)

Thanks for taking your time to read, and if you can help then that would be amazing!

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Restrictions HELP?
« Reply #1 on: August 28, 2015, 08:56:29 AM »
I'm not 100% sure how access tags work, but I think you can have something like '!superadmin' to the access tags for the headadmin's adduser command. In command form it would be 'groupallow headadmin adduser !superadmin'. I'll test this in a bit to see if it works.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Aharon Tager

  • Newbie
  • *
  • Posts: 37
  • Karma: 0
    • Barely Legal Gaming
Re: Restrictions HELP?
« Reply #2 on: August 30, 2015, 07:42:57 AM »
If you go through XGUI there's an option to whitelist string values. put in, one by one, the groups you want them to be able to change people to.