Potato_Tomato420 Posted July 30, 2019 Share Posted July 30, 2019 Hi, Is it possible to disable the /register and /login command? I have created a login system for my server but I don't want players to login by command. Link to comment
DogukanUcan Posted July 30, 2019 Share Posted July 30, 2019 function preventCommandSpam(commandName) if commandName == "login" or commandName == "register" or commandName == "logout" then cancelEvent() end end addEventHandler("onPlayerCommand", root, preventCommandSpam) Link to comment
JeViCo Posted July 31, 2019 Share Posted July 31, 2019 Another way (using acl.xml rights): <right name="command.login" access="false"></right> <right name="command.register" access="false"></right> 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