Im looking for a plugin that forbids the use of a configurable list of chat commands while in a certain zone. Upon use it should also return a "you are not allowed to do that here" type of message.
Maybe it already exists and someone can point me in the right direction?
Thanks!
Forbid certain commands in a zone (Rust)
You could use Zone Command with ZonePerms. In Zone Command, use
You'll need to re-grant the permissions, which I think can be done with ZonePerms:
The custom chat messages about "You are not allowed to do that here." That would probably be a custom solution but you may be able to modify that specific mod's lang file to include a second message. Example from the Trade mod's lang file:
They wouldn't get the message once they leave the zone and ZonePerms regrants the permissions.
Thanks to Wulf
oxide.revoke user $player.id permhere.useYou'll need to re-grant the permissions, which I think can be done with ZonePerms:
"OnZoneExit":{
"Permissions": [
"permission1",
"permission2"
],The custom chat messages about "You are not allowed to do that here." That would probably be a custom solution but you may be able to modify that specific mod's lang file to include a second message. Example from the Trade mod's lang file:
"Denied: Permission": "You lack permission to do that, or are in a zone that disallows its use."They wouldn't get the message once they leave the zone and ZonePerms regrants the permissions.
Thanks to Wulf