Giving Players Permissions

Would I be able to give player permissions i.e. if a player sets a trap that specific trap cannot injure him.

you can keep track of a variable that represents what team the player is on, and any trap that is set or bullet that is launched should keep track of which team spawned it. then, whenever you apply damage, you can check if the team ID of the damage causer is different from the team ID of the victim, and if they are the same, don’t apply damage. this TeamID variable could be an Integer or a Name.