I found out that I could have custom k (admin levels) in Adonis. But the thing is I do not know how to set up this.
Like what if I want the idk lets do a rank called:
Barista
Barista and Admins+ can run the command :kitchen. To go in the kitchen.
The thing is I dont know how to set properly Barista rank. Or for example if I want to make it so that barista can check chatlogs but Moderator+ too. How would I fix that?
In fact, my issue is how to properly use custom ranks from adonis
Hi
Yeah I did that but like lets sayI have this command :kick Moderators+ would be able to run it right?
But I also want that “Barista” rank to be able to execute that command. How do I make it so that command can be run by Moderator+ and Barista rank
Let’s say the barista rank is number 5 and the rest under it don’t need admin
If you use the template with the number 5 instead of 255, it will give the admin to all the ranks above barista including barista, and all the ranks below wouldn’t have admin.
I have found a solution to this.
We have a property on the admin that allow us to set a command to a certain role.
Then using the settings.permission will allow you to whitelist the command to said rank.
eg.
settings.permissions = {":logs:Barista"},
and so on. If you have more roles then just do it more times… settings.permissions = {":logs:Barista"; ":logs:Manager"},