GhostXoP Posted June 25, 2012 Share Posted June 25, 2012 I cannot seem to remove the handler. Should i just replace it? Link to comment
Guest Guest4401 Posted June 25, 2012 Share 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 ) Link to comment
Al3grab Posted June 25, 2012 Share 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 .. 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