#How can I get modlogs from server adonis plugin
1 messages · Page 1 of 1 (latest)
run :bans and search for the ID
:timebanlist and search for the ID
and for warnings just do :warnings id-IDHERE
I said in Adonis server plugin
But thanks for helping
you dont need a plugin for this
you can just use commands
I mean module script plugin
I’m making a plugin
For Adonis
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
best code
iirc the first iteration was just username then it became a table to support reasons and moderators
This is an absolute mess
you can submit a pr to change it if you want to
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
Wait
So now it puts automatically user id and username
Right?
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