gokalpfirat Posted April 4, 2013 Share Posted April 4, 2013 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
Ludo Posted April 4, 2013 Share Posted April 4, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now