sdlink icon indicating copy to clipboard operation
sdlink copied to clipboard

[Feature Request] Custom commands triggered on role change.

Open jbagwell27 opened this issue 2 years ago • 0 comments

In addition to running commands manually through /mc, have the option to have it automatically run a certain command based on rule change. "role added and role removed" With the new features already complete:
player variables in commands
auto whitelist based on roles

Would it be difficult to include a custom command to be run when a player role is changed?
Something like this would be in the config:

[triggerCommands]
[[triggerCommands.rolechange]]
   enabled = true
   added = true #or false
   #or removed = true/false (some way to determine if the role was added or removed in the command)
   discordRole = "patreoncopper" #this would be the role that triggers the command
   mcCommand = "/ftbranks add %linkedPlayer% %discordRole%" 
# or something more specific
[[triggerCommands.roleadded]]
[[triggerCommands.roleremoved]]

It would only work if the player is already whitelisted and linked which would be automated with the aforementioned features. Plus the linked player variables were added too.

jbagwell27 avatar Aug 14 '23 14:08 jbagwell27