#Creating a function to unban all players

1 messages · Page 1 of 1 (latest)

unique heron
#

Hello, I need a way to unban all players as a quick function but I am stumped. My current plan of action is to interpret the /banlist command and painfully do it that way but I just wanted to see if someone has an alternative solution to this problem. I'm willing to bet the answer is obvious as hell.

left beaconBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

stone drift
#

You could try

let banList = Utils.server.playerList.bans
banList.userList.forEach(user => banList.remove(user))
unique heron
#

Ooh, that's extremely helpful, thank you