#trello lists for ban

1 messages · Page 1 of 1 (latest)

cunning gulch
#

i have the main module in my game, how would I have adonis search across 2 differernt lists, one called Temporary Bans and one Called Perm bans, right now i was testing and I have a bans and and bans list but adonis will only read one of them. how woudl I have it ready both of them?

#

if that makes sense?

cunning heart
#

Make code add something to Settings.Ban

#

I'll write you an example plugin

#

I think this works good

#

-- ==== Add any code that sets the tempban ====
local tempbans = {}
--=============================================

-- // This function will be run by adonis on startup, the module must return a function for Adonis to work properly
return function(Vargs)
    local server, service = Vargs.Server, Vargs.Service

    table.move(tempbans, 1, #tempbans, (#server.settings.Banned + 1), server.settings.Banned)
end
#

Add it as a modulescript which's name starts with "Server-" to the Plugins folder

cunning heart
cunning gulch
#

OK

cunning gulch
cunning heart
cunning gulch
cunning gulch
#

anyone mind helping me

#

i dont need adonis to add a card to a certain list depending on variables. i just need it to read the list names and register them to be ban lists