Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

My Trello API ban system does not work?

Asked by 8 years ago

Alright so I own an anti-exploit group and I recently had to make a new module due to our last one broke and now I am finding out that my Trello Ban system will not work here is the script.

wait(0.1)
BoardID = "KaIGYrRf"
ap = require(game.Workspace.TrelloAPI)
BanList = ap:GetListID("Bans",BoardID)

Cards = ap:GetCardsInList(BanList)

Bans = {}

for i,v in pairs (Cards) do
    print(ap:GetCardInfo(v,BoardID))
end

I'm thinking I left out something like to check for the username under the card and then kick them when they enter the game and display a message. If someone could please help me learn from this that would be great! (I'm kind of new to Trello API I learned most of this from my old developer who quit a while ago)

1 answer

Log in to vote
0
Answered by 8 years ago

You left out the part where when a player connects to the game, it checks the username via the table you have on line 8. If that username matches a banned user in the table, you could use :Kick() to remove them.

Ad

Answer this question