BAE Multiple Cmd Permissions for Admin Levels

Hello,

So im trying to get Multiple admin levels on a command so lets say Admin can only be used/shown by admin level 4

 {'admin', sysTable.Prefix, Funcs.Admin, 4, {'admin', '<User(s)>', 'Admins the specified user(s).'}},
    {'mod', sysTable.Prefix, Funcs.Admin, 4, {'mod', '<User(s)>', 'Mods the specified user(s).'}},
    {'unadmin', sysTable.Prefix, Funcs.Admin, 4, {'unadmin', '<User(s)>', 'Removes any level of admin that specified user(s) have.'}},
    {'admins', sysTable.Prefix, Funcs.Display, 0, {'admins', '', 'Displays all admins of this server.'}},
    {'ingameadmins', sysTable.Prefix, Funcs.Display, 1, 2, {'ingameadmins', '', 'Displays all admins in this server.'}},
Permissions = {
		OWNER = {4,{}},
		LS = {3,{}},
		HR = {2,{}},
		MR = {1,{}},
		Banned = {},
	},

But lets say ingameadmins by adminlevel 1, and 2 but somehow it works with cmd execution only it wont show correctly in the cmd list?

Did you replace the admin level names? If not, you’d have to do that.

For future, I suggest you search and do some digging on the forums before creating a post because your answer may be SOMEWHERE such as in this post by me.

If this not help you, please feel free to ask more or make this is as the solution if it helps.

2 Likes

Hey,

Thanks for the reply,

Thats not what i mean, and yes i have changed the admin level names.

So lets say i have this command, so i want to add multiple admin levels to a specefic command
{‘mod’, sysTable.Prefix, Funcs.Admin, 4, 3 {‘mod’, ‘<User(s)>’, ‘Mods the specified user(s).’}},

So as you can see i want 3 & 4 to be able to use the command and show up in the command list.

That’s not really how BAE works; if your making the command in the MainModule, when you add your command you will see something like this in the code (but it will be configured with your settings):

{'m',sysTable.Prefix,Funcs.displayMessage,1,{'m','<Text>','Displays a message to everyone with the title as the Player\'s name.'}},

Where the number is, so in this case it’s 1, is the minimum rank that can use it. Any ranks above it can also use it.

If this solved your issue, please mark it as solution.

Ohh wel i did not now that,

Is there any way i can do that?

Becus now Lets say i set Fly to Admin level [4] then only admin level 4 can use/see it but what if i want admin level 3 & 4 to use fly?

Since command Configuration also does not want multiple admin levels…

[‘Command Configuration’] = {
[‘fly’] = {
[‘Permission’] = {4, 3}, – Single admin level, still in a table for consistency
},
[‘unfly’] = {
[‘Permission’] = {4, 3},
},
[‘shutdown’] = {
[‘Permission’] = {4, 3},
},

Just set it to 3, and then that role and the roles above can use it.

Once again, you just put the number of the role that you want to use it, and then that role and all above can use it.

If you don’t know how to function the MainModule, I would leave using that for now whilst you learn how to use lua and the Basic Admin System, and use the regular Setup.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.