11-16-2020, 02:04 AM
I kinda slammed this onto some donor abuse thread a couple of weeks ago, but there's features integrated into ULX admin mod that restricts what certain user groups can do with certain commands. We can use this to prevent donors from unmuting and ungagging themselves.
Under ULX group management, you can set who a group can target, so that would be stuff like preventing users in the trusted group from running any commands on anyone that's a tmod or higher. I don't recommend this, because it restricts every single command, which isn't always what we want.
What we want instead is to manage who someone can run a specific command on instead of managing who someone can run any command on. This is done through the same way permissions are assigned, except instead of just checking the box to grant them the permission, we use the additional options ULX provides to restrict more thoroughly what a user group can do with a command. Commands that can be ran on one or more players can be configured with the "Restrict players" option where we can set who exactly the command is allowed to execute on. To prevent donors from unmuting and ungagging themselves, we need to set this option to the "!^" wildcard, translating to "anyone except yourself".
Commands with restrictions set appear in red.
Now this is what happens when someone in the donor group tries to run this command on themselves:
The only downside to this is that whenever a donor ungags or unmute everyone, they cannot target themselves, so the chat message will list everyone except them as being unmuted or ungagged, instead of just saying everyone was unmutted/ungagged:
This does not happen when a staff member runs the command, thankfully.
Under ULX group management, you can set who a group can target, so that would be stuff like preventing users in the trusted group from running any commands on anyone that's a tmod or higher. I don't recommend this, because it restricts every single command, which isn't always what we want.
What we want instead is to manage who someone can run a specific command on instead of managing who someone can run any command on. This is done through the same way permissions are assigned, except instead of just checking the box to grant them the permission, we use the additional options ULX provides to restrict more thoroughly what a user group can do with a command. Commands that can be ran on one or more players can be configured with the "Restrict players" option where we can set who exactly the command is allowed to execute on. To prevent donors from unmuting and ungagging themselves, we need to set this option to the "!^" wildcard, translating to "anyone except yourself".
Commands with restrictions set appear in red.
Now this is what happens when someone in the donor group tries to run this command on themselves:
The only downside to this is that whenever a donor ungags or unmute everyone, they cannot target themselves, so the chat message will list everyone except them as being unmuted or ungagged, instead of just saying everyone was unmutted/ungagged:
This does not happen when a staff member runs the command, thankfully.