Jump to content

Cancel Nick Change


Recommended Posts

How to cancel changing nick from settings?

If i use onPlayerChangeNick it says in wiki:

Cancelling this event depends on how it is called, if it is called by the scripting event then it is NOT cancelable. If it is called from the /nick command it IS cancelable. If this event is cancelled and can be cancelled then the name will not change.

This only cancels /nick

But how to cancel changing from settings should I cancel onClientPlayerChangeNick ?

Link to comment
How to cancel changing nick from settings?

If i use onPlayerChangeNick it says in wiki:

Cancelling this event depends on how it is called, if it is called by the scripting event then it is NOT cancelable. If it is called from the /nick command it IS cancelable. If this event is cancelled and can be cancelled then the name will not change.

This only cancels /nick

But how to cancel changing from settings should I cancel onClientPlayerChangeNick ?

Man, changing the nick from "settings" or using /nick command should be the same, as you change your nick and then send it to the server, so you can use onPlayerChangeNick and then cancel the event, you won't have any problem.

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