PermTrigger is a command trigger plug-in. It allows you to add sets of commands to run when a player has a permission granted or taken away. It's licensed under the GNU General Public License v3.0.