Jump to content

Teleport command - admin only


Fabio(GNR)

Recommended Posts

This is very short snipped, of course you can use it, you can't do it in any other way anyway, but for admins you will have to add some extra code.

Ok thanks! :D So, whats the extra code ?

EDIT: i just looked it up in an other topic it says i can dis-allow default users in acl to the command by using command.(commandname) Is that correct?

Link to comment
This is very short snipped, of course you can use it, you can't do it in any other way anyway, but for admins you will have to add some extra code.

What code are you talking about?

...

EDIT: i just looked it up in an other topic it says i can dis-allow default users in acl to the command by using command.(commandname) Is that correct?

Yes it's correct.

I wonder why people don't use the 3rd parameter for addCommandHandler which is "restricted". There is no need for extra code, just change acl.xml a bit to block the command for everyone and let some groups use it. So simple and shortens the script.

Link to comment
This is very short snipped, of course you can use it, you can't do it in any other way anyway, but for admins you will have to add some extra code.

What code are you talking about?

...

EDIT: i just looked it up in an other topic it says i can dis-allow default users in acl to the command by using command.(commandname) Is that correct?

Yes it's correct.

I wonder why people don't use the 3rd parameter for addCommandHandler which is "restricted". There is no need for extra code, just change acl.xml a bit to block the command for everyone and let some groups use it. So simple and shortens the script.

Thanks, varez and 50p :D

Link to comment

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...