GhostXoP Posted June 25, 2012 Posted June 25, 2012 I cannot seem to remove the handler. Should i just replace it?
Guest Guest4401 Posted June 25, 2012 Posted June 25, 2012 If you wish to disable the logout feature: addEventHandler("onPlayerLogout",root, function() cancelEvent() end ) If you wish to remove only the command: addEventHandler("onPlayerCommand",root, function(command) if command == "logout" then cancelEvent() end end )
Al3grab Posted June 25, 2012 Posted June 25, 2012 also you can do it from ACL : aclSetRight(aclGet ( "Default") , "command.logout" , false) aclSave () -- to save the edits to acl.xml file or you can do it from acl.xml file ..
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