ULX

Author Topic: ulx group allow help..  (Read 12112 times)

0 Members and 1 Guest are viewing this topic.

Offline the unknown

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
ulx group allow help..
« on: May 01, 2011, 02:20:23 PM »
Alright. I'm not quiet getting this, so here i go.

First off, if i wanted to use this command, do i have to run it in the console , or can i place it in a file so its autoran,  like the groups.text?(if so, where do i place it?)

Secondly, How would i go about preventing admins from using certain commands on super admins such as kick,ban,etc. and how would i could i prevent superadmins doing the same thing to a custom group?

Thanks guys.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx group allow help..
« Reply #1 on: May 01, 2011, 02:33:39 PM »
1. Run it from the console, file editing is only for people that are sure they know what they're doing.
2. See the stickies on targeting/immunity in the SVN forum.
Experiencing God's grace one day at a time.

Offline the unknown

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: ulx group allow help..
« Reply #2 on: May 01, 2011, 03:00:09 PM »
I'm just new to using ulx, if there is a file for this command to be added in, may you tell me?

ahh! i see where to put it now, see i thought that the groups.txt was just for ulx commands, not like ulx group allow ".." but apparently so.
so never mind.
« Last Edit: May 01, 2011, 03:04:47 PM by the unknown »

Offline the unknown

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: ulx group allow help..
« Reply #3 on: May 01, 2011, 03:36:00 PM »
Actaully, would this be correct usage of group allow/immunity?

Code: [Select]
"owner"
{
"allow"
{
"ulx armor"
    }
    "inherit_from" "superadmin"
"ulx kickafternamechanges"
"ulx kickafternamechangescooldown"
"ulx kickafternamechangeswarning"
"ulx playsound"
"ulx map"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx logchat"
"ulx logdir"
        "ulx luarun"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx setgroupcantarget"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"xgui_managebans"
"xgui_managegroups"
"ulx votemap2"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx voteban"
"ulx unban"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votebanminvotes"
"ulx votebansuccessratio"

}
"superadmin"
{
"allow"
{
"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 maul"
"ulx cloak"
"ulx voteecho"
"xgui_gmsettings"
"xgui_svsettings"
"ulx hp"
"ulx ban" "!%owner"
"ulx banid" "!%owner"
"ulx physgunplayer" "!%owner"
"ulx votekick" "!%owner"
"ulx gag" "!%owner"
"ulx gimp" "!%owner"
}
"inherit_from" "admin"
}
"admin"
{
"can_target" "!%superadmin"
"allow"
{
"ulx ban" "!%superadmin"
"ulx banid" "!%superadmin"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx god"
"ulx goto"
"ulx ignite"
"ulx mute"
"ulx noclip" "!%superadmin,^"
"ulx physgunplayer" "!%superadmin"
"ulx ragdoll"
"ulx rslotsvisible"
"ulx seeanonymousechoes"
"ulx send"
"ulx showmotd"
"ulx slay" "!%superadmin"
"ulx spawnecho"
"ulx spectate"
"ulx sslay" "!%superadmin"
"ulx strip" "!%superadmin"
"ulx teleport"
"ulx tsay"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungod" "!%superadmin"
"ulx unignite"
"ulx unigniteall"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx votekick" "!%superadmin"
"ulx welcomemessage"
"ulx whip"
        "ulx slap"
"ulx who"
}
"inherit_from" "mod"
}
"mod"
{
"allow"
{
        "ulx kick" "!%admin"
        "ulx jail" "!%admin"
        "ulx unjail" "!%admin"
"ulx gimp" "!%admin"
"ulx ungimp" "!%admin"
}
"inherit_from" "operator"
}
"user"
{
"allow"
{
"ulx asay"
"ulx help"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votemap"
}
}
"root_user"
{
"allow"
{
}
"inherit_from" "superadmin"
}
"operator"
{
"can_target" "!%admin"
"allow"
{
"ulx seeasay"
}
"inherit_from" "user"
}
« Last Edit: May 04, 2011, 04:25:36 PM by the unknown »

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: ulx group allow help..
« Reply #4 on: May 02, 2011, 10:35:54 AM »
Owner is wrong, it should look exactly like the others in terms of formatting.
Other than that it looks like it should be fine. I find it odd you have a root_user that is basically a super admin, but maybe that's how you run your server, I dunno.
As far as the targeting question goes, I don't use it, so I can't help you on that  :P

Code: [Select]
"owner"
{
   "allow"   
   {
      "ulx armor"   
      "ulx kickafternamechanges"
      "ulx kickafternamechangescooldown"
      "ulx kickafternamechangeswarning"
      "ulx playsound"
      "ulx map"
      "ulx addgroup"
      "ulx adduser"
      "ulx adduserid"
      "ulx cexec"
      "ulx ent"
      "ulx exec"
      "ulx groupallow"
      "ulx groupdeny"
      "ulx hiddenecho"
      "ulx logchat"
      "ulx logdir"
        "ulx luarun"
      "ulx rcon"
      "ulx removegroup"
      "ulx removeuser"
      "ulx removeuserid"
      "ulx renamegroup"
      "ulx setgroupcantarget"
      "ulx userallow"
      "ulx userallowid"
      "ulx userdeny"
      "ulx userdenyid"
      "xgui_managebans"
      "xgui_managegroups"
      "ulx votemap2"
      "ulx votemap2minvotes"
      "ulx votemap2successratio"
      "ulx votemapenabled"
      "ulx votemapmapmode"
      "ulx votemapmintime"
      "ulx votemapminvotes"
      "ulx votemapsuccessratio"
      "ulx votemapvetotime"
      "ulx votemapwaittime"
      "ulx reservedslots"
      "ulx rslots"
      "ulx rslotsmode"
      "ulx voteban"
      "ulx unban"
      "ulx votekickminvotes"
      "ulx votekicksuccessratio"
      "ulx votebanminvotes"
      "ulx votebansuccessratio"
      }   
    "inherit_from" "superadmin"
}
« Last Edit: May 02, 2011, 10:44:25 AM by krooks »
My TTT server. Join the fun!

Offline the unknown

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: ulx group allow help..
« Reply #5 on: May 04, 2011, 04:21:39 PM »
Alright ill fix that, i only made a quick edit and forgot to remove it lol.

wooah. don't know how i screwed that badly on "owner" lol..

but how does this work?
and will immunity work the way i added it in?

Code: [Select]

"owner"
{
"allow"
{
"ulx kickafternamechanges"
"ulx kickafternamechangescooldown"
"ulx kickafternamechangeswarning"
"ulx playsound"
"ulx map"
"ulx addgroup"
        "ulx armor"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx logchat"
"ulx logdir"
        "ulx luarun"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx setgroupcantarget"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"xgui_managebans"
"xgui_managegroups"
"ulx votemap2"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx voteban"
"ulx unban"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votebanminvotes"
"ulx votebansuccessratio"
    }
    "inherit_from" "superadmin"

}
"superadmin"
{
"allow"
{
"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 maul"
"ulx cloak"
"ulx voteecho"
"xgui_gmsettings"
"xgui_svsettings"
"ulx hp"
"ulx ban" "!%owner"
"ulx banid" "!%owner"
"ulx physgunplayer" "!%owner"
"ulx votekick" "!%owner"
"ulx gag" "!%owner"
"ulx gimp" "!%owner"
}
"inherit_from" "admin"
}
"admin"
{
"can_target" "!%superadmin"
"allow"
{
"ulx ban" "!%superadmin"
"ulx banid" "!%superadmin"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx god"
"ulx goto"
"ulx ignite"
"ulx mute"
"ulx noclip" "!%superadmin,^"
"ulx physgunplayer" "!%superadmin"
"ulx ragdoll"
"ulx rslotsvisible"
"ulx seeanonymousechoes"
"ulx send"
"ulx showmotd"
"ulx slay" "!%superadmin"
"ulx spawnecho"
"ulx spectate"
"ulx sslay" "!%superadmin"
"ulx strip" "!%superadmin"
"ulx teleport"
"ulx tsay"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungod" "!%superadmin"
"ulx unignite"
"ulx unigniteall"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx votekick" "!%superadmin"
"ulx welcomemessage"
"ulx whip"
        "ulx slap"
"ulx who"
}
"inherit_from" "mod"
}
"mod"
{
"allow"
{
        "ulx kick" "!%admin"
        "ulx jail" "!%admin"
        "ulx unjail" "!%admin"
"ulx gimp" "!%admin"
"ulx ungimp" "!%admin"
}
"inherit_from" "operator"
}
"user"
{
"allow"
{
"ulx asay"
"ulx help"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votemap"
}
"operator"
{
"can_target" "!%admin"
"allow"
{
"ulx seeasay"
}
"inherit_from" "user"
}
« Last Edit: May 04, 2011, 04:26:37 PM by the unknown »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx group allow help..
« Reply #6 on: May 04, 2011, 07:40:22 PM »
Why are you editing files, instead of using XGUI's menus?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline the unknown

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: ulx group allow help..
« Reply #7 on: May 06, 2011, 09:03:14 PM »
Good question, I never toyed with that, I'm just used to doing it this way ever since i got ulx.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: ulx group allow help..
« Reply #8 on: May 06, 2011, 09:31:56 PM »
I was the same as you for a while, but once I took a look at how to manage groups with ULX, I seriously wont go back to the old way. It's actually realllly nice, give it a try!  ;D
My TTT server. Join the fun!