message-xmarkRestricting Commands

Learn how to restrict or whitelist commands to Pixel Administration.

triangle-exclamation

Important!

You will not be able to update your Custom Commands to be restricted to a certain rank, that wouldn't be ideal for the built in commands as you have to edit the Permissions module. The commands wouldn't be able to know what ranks are there, and you wont be able to edit built in commands unless you make your own MainModule which isn't supported by Pixel Administration. Instead we'll be focusing on the Permissions file like you edited earlier.

circle-exclamation

With that out of the way, lets get started! Lets go to the Permissions file. In your ranks you may or may not have the following inside of a rank table:

CommandAccess = "None",

If you don't have it, just add it to your rank. It should look like this:

["YourRank"] = {
		Accent = Color3.fromRGB(122, 122, 122),
		
		...
		
		CommandAccess = "None",
}
circle-exclamation

Lets change CommandAccess to one of the following acceptable inputs:

chevron-rightCommandAccess: Whitelisthashtag

"Whitelist" accepts some commands, making every other command blacklisted and not usable for that rank.

circle-exclamation

The "CommandOne" and "CommandTwo" are placeholders. Just replace them with the command names. They are case sensitive with a capital letter at the beginning of each command if they're built in ("Kick", "Bring", etc.). Two is not the limit for allowed commands, you can add infinite whitelisted commands.

CommandAccess = "Whitelist"
AllowedCommands = {"CommandOne", "CommandTwo"},
chevron-rightCommandAccess: Blacklisthashtag

"Blacklist" disallows some commands, making every other command whitelisted and still usable for that rank.

circle-exclamation

The "CommandOne" and "CommandTwo" are placeholders. Just replace them with the command names. They are case sensitive with a capital letter at the beginning of each command if they're built in ("Kick", "Bring", etc.). Two is not the limit for allowed commands, you can add infinite blacklisted commands.

chevron-rightCommandAccess: Allhashtag

"All" accepts all commands with no restrictions. Please apply this to the ranks you trust as this gives them access to the entire command library.

Congratulations! You've finished this tutorial. Now you should know how to whitelist and blacklist, and even allow all commands for a rank.

Last updated