ULX

Author Topic: Setting up a donator rank for ULX  (Read 5000 times)

0 Members and 5 Guests are viewing this topic.

Offline RoadDogg

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Setting up a donator rank for ULX
« on: January 03, 2013, 05:10:49 AM »
Okay, I've actually made the group, I called it Donator admin.
What I want is for them to be able to !votekick, !voteban and any other vote commands pretty much. However, they can only !votekick or !voteban or any other vote command on people in the same group, or people in a higher group such as proper admins. How do I make it so they can only do it on people in groups below? The groups belows are called "vip" "user".

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Setting up a donator rank for ULX
« Reply #1 on: January 03, 2013, 05:26:10 AM »
Please share your groups.txt file -- it sounds like you specifically set donators to not be able to target lower groups.
Experiencing God's grace one day at a time.

Offline RoadDogg

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Setting up a donator rank for ULX
« Reply #2 on: January 03, 2013, 06:21:20 AM »
Please share your groups.txt file -- it sounds like you specifically set donators to not be able to target lower groups.

Code: [Select]
"management"
{
"allow"
{
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx armor"
"ulx banid"
"ulx blind"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx god"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx hp"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logechocolorconsole"
"ulx logechocolordefault"
"ulx logechocoloreveryone"
"ulx logechocolormisc"
"ulx logechocolorplayer"
"ulx logechocolorplayerasgroup"
"ulx logechocolors"
"ulx logechocolorself"
"ulx logevents"
"ulx logfile"
"ulx logjoinleaveecho"
"ulx logspawns"
"ulx logspawnsecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx setgroupcantarget"
"ulx unban"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"ulx voteecho"
"xgui_gmsettings"
"xgui_managebans"
"xgui_managegroups"
"xgui_svsettings"
"slay" "slay"
}
"inherit_from" "superadmin"
}
"headadmin"
{
"allow"
{
"addgroup"
"adduser"
"adduserid"
"groupallow"
"groupdeny"
"removegroup"
"removeuser"
"removeuserid"
"renamegroup"
"setgroupcantarget"
"ulx rcon"
"userallow"
"userallowi"
"userallowid"
"userdeny"
"userdenyid"
"usermanagementhelp"
"usetdeny"
"ulx renamegroup" "renamegroup"
"ulx groupdeny" "groupdeny"
"ulx removegroup" "access tag"
"ulx god" "god"
"ulx removeuser" "removeuser"
"ulx adduser" "adduser"
"ulx cloak" "cloak"
"ulx groupallow" "groupallow"
"access tag" "ulx addgroup"
"ulx unban" "unban"
"ulx ban" "ban"
}
"can_target" "superadmin"
"inherit_from" "superadmin"
}
"superadmin"
{
"allow"
{
"ulx banid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx hiddenecho"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logechocolorconsole"
"ulx logechocolordefault"
"ulx logechocoloreveryone"
"ulx logechocolormisc"
"ulx logechocolorplayer"
"ulx logechocolorplayerasgroup"
"ulx logechocolors"
"ulx logechocolorself"
"ulx logevents"
"ulx logfile"
"ulx logjoinleaveecho"
"ulx logspawns"
"ulx logspawnsecho"
"ulx luarun"
"ulx maul"
"ulx voteecho"
"xgui_gmsettings"
"xgui_managebans"
"xgui_managegroups"
"xgui_svsettings"
"ulx whip" "whip"
"ulx ignite" "iginte"
"ulx cloak" "cloak"
}
"inherit_from" "admin"
}
"donator admin"
{
"can_target" "!%user"
"allow"
{
"ulx goto"
"ulx seeasay"
"ulx vote"
"ulx voteban"
"ulx votekick"
}
"inherit_from" "user"
}
"admin"
{
"allow"
{
"ulx ban"
"ulx banid"
"ulx bring"
"ulx chattime"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx goto"
"ulx jail"
"ulx kick"
"ulx kickafternamechanges"
"ulx kickafternamechangescooldown"
"ulx kickafternamechangeswarning"
"ulx map"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx seeanonymousechoes"
"ulx send"
"ulx showmotd"
"ulx slap"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx tsay"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx votekick"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap2"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx welcomemessage"
"ulx whip"
"ulx slay" "slay"
}
"can_target" "!%superadmin"
"inherit_from" "operator"
}
"vip"
{
"can_target" "!%user"
"allow"
{
"ulx asay"
"ulx help"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx who"
}
"inherit_from" "user"
}
"user"
{
"allow"
{
"ulx asay"
"ulx help"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx who"
}
}
"operator"
{
"allow"
{
"ulx seeasay"
}
"can_target" "!%admin"
"inherit_from" "user"
}

I want it so management can have access to everything and target everyone
and head admins can target everyone below head, and super can target everyone below super admin, and admin can target everyone b low admin and donor admin can target anyone below donor. Also,  Any chance people in that group cannot target anyone else in that group or higher?
« Last Edit: January 03, 2013, 06:27:52 AM by RoadDogg »

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Setting up a donator rank for ULX
« Reply #3 on: January 03, 2013, 08:21:22 AM »
You'll want to edit these through XGUI's group editor-- Just go to the groups tab, click the dropdown box and click "Manage Groups...". You're focusing on the can_target field.

For your head_admin group, you set can_target to "superadmin", which means they can only target players named "superadmin". I suggest reading this for a better insight on how the can_target field works.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline RoadDogg

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Setting up a donator rank for ULX
« Reply #4 on: January 03, 2013, 08:56:08 AM »
So what do I type in if I want it to target everyone?
Or if its just a certain group?
This is what donator admin was currently set to
http://puu.sh/1IYvz

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Setting up a donator rank for ULX
« Reply #5 on: January 03, 2013, 08:59:26 AM »
If you leave it blank they should be able to target everyone.

Don't forget that you can setup targeting restrictions per command, too.
Experiencing God's grace one day at a time.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Setting up a donator rank for ULX
« Reply #6 on: January 03, 2013, 09:18:05 AM »
!%user means that they can_target NOT(!) group(%) user. Meaning they can't inherit any groups that inherit_from user, which is pretty much every group.

If you want the group to target everyone, then you can just put a * there or leave it blank, like the superadmin can_target default should be.

If you want to target a single group... uhh.. you actually can't, due to limitations of the targeting engine. Me and Megiddo are discussing this right now though, we may have a way to implement it without breaking too much stuff :P

The best way to set up your permissions is to line them up in order of most access to least access, making the higher ones inherit from the next lowest: management inherits from headadmin, headadmin inherits from superadmin, superadmin inherits from admin, etc..

From there, the can_target for each group would be !%thegroupabove, so user would be !%vip, vip would be !%operator, operator would be !%donator, etc., depending on your order of groups.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6