Hello guys, I'm trying to use the Adonis Admin API to run its :kick command.
This is my API's current configuration: https://i.imgur.com/YWKmzdV.png
Here's my attempt to make the server run the command:
(This is the script which elaborates the client kick request)
game.ReplicatedStorage.ServerClient_Requests.ClientSideRequest.OnServerEvent:Connect(function(Player, Request, Value) if Request == "KickPlayer" then game.ServerStorage.GameEvents.AdonisManualEvents.KickPlayer:Fire(Player, Value) end end)
(This is the actual kick request made by the server, the last line in particular)
game.ServerStorage.GameEvents.AdonisManualEvents.KickPlayer.Event:Connect(function(Player, Message) print(Player, Message) local Admin = _G.Adonis.Access(SecurityKey, "Admin") Admin.RunCommand(":kick", Player.Name, Message) end)
My problem: the script just doesn't do anything! No errors! The output just contains the command I sent to the server and the "print" one: https://i.imgur.com/AwjfoY7.png
Is there anyone who knows how to make this work? What am I doing wrong?