#How can I get modlogs from server adonis plugin

1 messages · Page 1 of 1 (latest)

austere leaf
#

I'm trying to get a list of Bans / tempbans / warnings by userId

graceful sleet
#

run :bans and search for the ID

#

:timebanlist and search for the ID

#

and for warnings just do :warnings id-IDHERE

austere leaf
#

But thanks for helping

graceful sleet
#

you can just use commands

austere leaf
#

I’m making a plugin

#

For Adonis

austere leaf
#

Is adonis seriously saving all banned users on a table?

#

So why adonis uses Settings.Banned

#

so it is cache

#

Nice to know

#
                    if type(v) == "table" then
                        if v.Name and v.UserId then
                            entry = `[{banType}] {v.Name}:{v.UserId}`
                        elseif v.UserId then
                            entry = `[{banType}] ID: {v.UserId}`
                        elseif v.Name then
                            entry = `[{banType}] {v.Name}`
                        end
                        if v.Reason then
                            reason = v.Reason
                        end
                        if v.Moderator then
                            moderator = v.Moderator
                        end
                    else
                        entry = `[{banType}] {v}`
                    end
#

What the hell

#

Aren't all banned users saved in the same way ? 😅

#

🙏

#

Jesus Christ

pine sun
#

iirc the first iteration was just username then it became a table to support reasons and moderators

pine sun
#

pretty sure baconnn did the ban change for banlist atleast

#

there probably should be a way to migrate from the older one than support both the formats for the datastore instead

#

definitely would be better

austere leaf
#

So now it puts automatically user id and username

#

Right?

pine sun
#

if you recently added adonis you shouldn't need to worry about the string format unless you've added people to settings.Banned (via the settings module) as a string