Stop traps from being trigger by the trapper

Currently, if you set a trap on a door and use that door, it triggers the trap.

It would seem when you set a trap it should not be triggered by the person who set it.

Ideally, it wouldn't be triggered by friends or clanmates.

I updated the plugin to fix this in a way that serves my purposes. Strictly speaking it does not do exactly what the OP requested, but it gets the job done for me.

My updates create a new permission "boobytraps.auth". If an oxide group has this permission, then players in that group will not trigger traps on doors and containers when they are authorized to build on a nearby TC. The following instructions use line numbers for what the code will be once the changes are complete, so follow the instructions in order and your line numbers will match mine.

1. Download the plugin and open it up in a text editor/dev environment that gives you line numbers (I use notepad++)
2. Make the following changes:

On line 49, add:
const string authPerm = "boobytraps.auth";
On line 152, add:
permission.RegisterPermission(authPerm, this);
On line 224, change the TryActivateTrap function definition to remove assigning the player object to null. This line should read:
void TryActivateTrap(uint Id, BasePlayer player)
Starting at line 242, add the following three lines and another blank line (4 lines total):
if (HasPermission(player.UserIDString, authPerm))
if (player.IsBuildingAuthed())
return;

On line 457, update the HasAnyPerm helper to include your newly defined permission. This line should read:
private bool HasAnyPerm(string userId) => (HasPermission(userId, explosivePerm) || HasPermission(userId, deployPerm) || HasPermission(userId, elementPerm) || HasPermission(userId, adminPerm) || HasPermission(userId, authPerm));

3. Save the file.
4. If you are already running BoobyTraps on your server, from the console, run the command "oxide.unload BoobyTraps" (no quotes). Otherwise go to step 6.
5. Delete the existing BoobyTraps.cs file from your oxide plugins directory.
6. Upload your new BoobyTraps.cs file to your oxide plugins directory. Your server should automatically compile and load the plugin.

This has been tested on the latest Rust build as of 3/11/2019. However, I am running several other plugins on my server, so ymmv.