Reassigning Permissions for Commands
This is an easy process, and shouldn't require much scripting experience if you're going to modify existing commands.
Guides:
Why would you want to change commands?
You can change commands to change their category, callbacks, levels, descriptions, and more! This can bring flexibility if you don't like existing categories or levels.
How do I do it?
In the xPanel configuration folder expand the commands folder, and open the "Modifications" module. Now, check out the creating your own command page, this will help with understanding the fundamentals. Our reference guide has a full commands list for commands you might want to modify.
To modify one, here's the syntax:
fly = { --> Command name
level = 0; --> Fly can now be used by everyone!
description = "I've been changed!" --> New description!
};Available properties that can be changed:
aliases <table>
name <string>
level <int>
description <string>
Dangerous properties:
These properties are marked as dangerous because they can break the command if you don't know what you're doing.
onSyntaxError
onPermissionError
callback
Let's modify a command!
Simply add the command you're going to modify inside the return part.
To modify multiple commands, here's an example:
Make sure there's a ";" or "," at the end of your modification table or it will break.
Last updated
Was this helpful?