#user changed username and now cannot be unbanned
1 messages · Page 1 of 1 (latest)
see a similar report here --> https://discord.com/channels/81902207070380032/1190517000708042842 no solution that is viable
Why do we still have this issue-
because its not been fixed i assume! :D
i could scroll through ;adonissettings but it would literally take days since i have 5000+ bans
Yeah ik that
Not even surprised
😔
my staff and me r looking for a command that will work but its looking pretty bad 😭
nope
thats what we tried first
doesnt work
literal only way is ;adonissettings but it would take a day to find the ban
need a ban command that just overrides everything
let me know if you're able to run this inside :terminal:
loadstring local USER_ID = 76058770
local Core = server.Core
local Functions = server.Functions
local Banned = Core.GetData("SAVEDTABLE_Banned")
for index, action in ipairs(Banned) do
if action.Type == "TableAdd" then
local actionValue = action.Value
local tabName = action.Table
if
(type(actionValue) == "table" and tonumber(actionValue.UserId) == USER_ID)
or (type(actionValue) == "string" and tonumber(string.match(actionValue, ":(.*)")) == USER_ID)
then
local tab = Core.IndexPathToTable(tabName)
local ind = Functions.GetIndex(tab, actionValue)
if ind then
table.remove(tab, ind)
end
Core.DoSave({
Type = "TableRemove",
Table = tabName,
Value = actionValue,
})
print("removed data")
end
end
end
should look like this:
at the bottom of the log, let me know if it says "removed data"
As a temporary solution, open :terminal and run loadstring server.Admin.RemoveBan({UserId = 76058770; name = "vqzrxz"}, true) to manually un-ban until I can put the fix into release
not sure why someone made it rely on name and not userid
Okay thank you
I’ll try it in a bit
hold on making this that even works lmfao
this is a very badly written system in here, going to rewrite it out of spite
💀
someone reorganized a bunch of this stuff a while ago and did a very lackluster job of testing it well
not sure why a maintainer even merged it in
😔
loadstring server.Admin.RemoveBan(76058770, true) should do it
need to make RemoveBan take in the fake player system so it's easier to remove offline players instead of just passing a username (which CHANGES)
who in the hell makes it rely on a changeable part of players
Can’t it just be based on user ID
It can be
Would make it easier Xd
😔
not sure why a maintainer even merged it in
🥹
https://prnt.sc/wKVsARVaPT0- i dont think it did anything
the fix he said doesnt do anything
😟
nvm i think it worked
do this
plus its only sending the name not userid