Line 156 of adonis settings module, I’m trying to restrict multiple commands to a custom rank, but only one command works. The rank is RAdmin, am I formatting it wrong?
settings.Permissions = {":Shutdown:RAdmin",":Spook:RAdmin"}
Yet this works:
settings.Permissions = {":Shutdown:RAdmin"}
It doesn’t error, but it doesn’t the rank access to the commands.
You have to do something like this in order for it to work:
settings.Permissions = {
":Shutdown:Creators",
":Spook:RAdmin"
}
Edit: This is how me and the other Developers did it for Roblox’s Got Talent. We have a list of commands in this format, and it works perfectly fine.
1 Like
For some reason it’s still saying “You don’t have permission to run…”
Edit: I’m using v1.6.5 could that be why it isn’t working?
Try instead using semicolons to separate the commands rather than commas,
settings.Permissions = {":Shutdown:RAdmin";":Spook:RAdmin"}
I’m not sure how much of a difference this’ll do since I found the code for Adonis Admin and saw they used semi colons to separate commands and I’m going off pure speculation
Nope, neither work, only when there’s a single command does it work.
I’m checking the code again and the first command has a ? at the start. Maybe try
settings.Permissions = {"?Shutdown:RAdmin";":Spook:RAdmin"}
If this doesn’t work either I’m sorry for wasting your time
Nope, didn’t work, was worth a shot though.
Annnnnnd Visible annoyance
I changed it’s parent and it started to work…weird.
Odd, least it’s working though!
It makes no sense that some things break when in the wrong parent, while others work.
Yea, sometimes things be like that for some reason