Rob0 Posted January 9, 2016 Share Posted January 9, 2016 I wrote my own log in system that of course uses logIn(source,account,pass) addAccount(account,pass) removeAccount(account) and a spiders web of xml but being unfamiliar with MTAs native /register /login system I did not disable these and am having trouble with more seasoned users presuming this is our method to, which causes our system to never log them in. Our solution is to delete the /priv/ folder of course which fixes it. But how do I disable the commands /register and /login so they never bother me again? Link to comment
Bonsai Posted January 9, 2016 Share Posted January 9, 2016 This should work, at least it does for me: function onPlayerCommand(command) if command == "logout" or command == "login" then cancelEvent() return end end addEventHandler("onPlayerCommand", root, onPlayerCommand) Same for other commands. Link to comment
Noki Posted January 10, 2016 Share Posted January 10, 2016 I just disabled the commands in the ACL for everyone. That's worked fine for me. Link to comment
Rob0 Posted January 12, 2016 Author Share Posted January 12, 2016 good solutions thanks i'll try both... but i did not find the ACL commands for log or reg? what exactly should i do there. Link to comment
Noki Posted January 12, 2016 Share Posted January 12, 2016 <right name="command.register" access="false"></right> <right name="command.login" access="false"></right> 1 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