Hello guys.
I’d like to issue the Adonis “:kick” command with the server in order to make a mini anti-exploit script.
I’ve been trying to issue that command using _G.Adonis but it’s not working: it keeps to output errors or to just do nothing.
Here’s my current Allowed_API_Calls configuration:
In the Admin module I found the “RunCommand” function, which I thought it would have solved all my problems, so I tried to do the following:
local Admin = _G.Adonis.Access(SecurityKey, "Admin")
Admin.RunCommand(":kick", Player, Message)
But unfortunately, the result is an “Access Denied” error, even though the Admin module is enabled in API calls as you could see from the previous image.
I even found the “Kick” function in the “Remote” and in the “Commands” modules but there was no way to call the functions.
I perfectly know that kicking a player just by using a script and a line of code would be much easier, but I’d like to use Adonis in order to better administrate my game.
Thanks for reading and thanks in advance for your help!