Author Topic: Disallow Targeting of Self?  (Read 2251 times)

0 Members and 1 Guest are viewing this topic.

Offline Gengar

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Disallow Targeting of Self?
« on: July 08, 2014, 07:31:35 PM »
Hello.  I was wondering if it's possible to make it to where you cannot target yourself?  Teleporting yourself with ulx teleport isn't trackable in the logs, hence abusable.  I know that !%rank makes it to where you can target all but that rank and above, but I'm wondering if there's a way to make it to where you cannot target yourself at all?

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Disallow Targeting of Self?
« Reply #1 on: July 08, 2014, 07:33:41 PM »
"^" is the flag for targetting yourself. Therefore you can do "!%^".
If you'd like to do "!%rank" as well, you can seperate with comma, so it would be: "!%^, !%rank".
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Gengar

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Disallow Targeting of Self?
« Reply #2 on: July 08, 2014, 07:46:44 PM »
Eh that's a little confusing for my dumb brain.  What exactly would I have to put here so that a group cannot target themselves with this ulx teleport command?  Also so that it doesn't conflict with the current permissions. (I have it to where these specific groups can !%rank)


Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Disallow Targeting of Self?
« Reply #3 on: July 08, 2014, 07:49:16 PM »
That looks good. It should follow inheritance if I remember right.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Gengar

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Disallow Targeting of Self?
« Reply #4 on: July 08, 2014, 07:52:47 PM »
What I have entered already doesn't work :(  I've added myself to the group I was editing and I was still able to teleport myself.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Disallow Targeting of Self?
« Reply #5 on: July 08, 2014, 08:07:10 PM »
Oh my bad. Remove the "%", so it just says "!^". That should work.
Sorry for the mistake.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Gengar

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Disallow Targeting of Self?
« Reply #6 on: July 08, 2014, 08:19:33 PM »
thank you  8)  ;D

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Disallow Targeting of Self?
« Reply #7 on: July 08, 2014, 09:59:57 PM »
I can't remember how this works exactly, but you may want to double check:

Leaving the "Ignore can_target" value checked will make the permissions not obey the current group settings- as in, your lower groups that have access to "tp" may now be able to teleport the admins and superadmins. If you leave it unchecked, it should still let them not teleport themselves, but also not teleport those in groups above them (based on your can_target value for the group).
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6