For every user in an /team (Vanilla minecraft teams system), restrict access to /msg

Howdy, We have a "Murder Mystery" minigame we host on a server. We are using /team to sort players into innocent, murderers, and detectives. We don't want citizens to have access to specific commands just while they are in that team. Is there any way to do this? We also run luckperms & worldguard
5 Replies
Admincraft Meta
Admincraft Meta5mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by 4g0tt3nsou1#0
Vei
Vei5mo ago
can't answer with 100% certainty, but by the looks of it you can use luckperms permissions with context: https://luckperms.net/wiki/Context looks like you'll need ExtraContexts for the "team" context to work with luckperms though https://github.com/LuckPerms/ExtraContexts?tab=readme-ov-file#team
QarthO
QarthO5mo ago
yup, sil is right on the money with it. You can use contexts to assign permission nodes based on what team they are on. You will however need to add ExtraContexts (an official addon maintained by LuckPerms) one of the contexts it adds is "team" https://github.com/LuckPerms/ExtraContexts?tab=readme-ov-file#team you can also add specific permissions based on what worldguard regions they are in too if you'd like
GitHub
GitHub - LuckPerms/ExtraContexts: Extra contexts for LuckPerms runn...
Extra contexts for LuckPerms running on Bukkit. Contribute to LuckPerms/ExtraContexts development by creating an account on GitHub.
4g0tt3nSou1
4g0tt3nSou1OP5mo ago
Perfect, Thanks a bunch. I am gonna check this out, and get back to y'all !resolved !answered
Admincraft Meta
Admincraft Meta5mo ago
post closed!
The post/thread has been closed!
Requested by 4g0tt3nsou1#0

Did you find this page helpful?