Jump to content

nick and the lives of the players


RARI

Recommended Posts

Posted

I would like to add a command for a specific ACL to be able to turn on the nick and the lives of the players so that only he can see

  • Moderators
Posted

Another way would be manually modify the ACL:

<right name="command.theCommand" access="false" />

<right name="command.theCommand" access="true" />

And set restricted to true (this is the syntax for addCommandHandler):

bool addCommandHandler ( string commandName, function handlerFunction [, bool restricted = false, bool caseSensitive = true ] )

This will restrict specific commands based on the ACL.

 

The choice depends where you want the restriction/validation being placed. During executing the command or in the function of the script.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...