space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.72k stars 3.46k forks source link

[ADMIN TOOL] new command "banmass" #33432

Open Schrodinger71 opened 1 day ago

Schrodinger71 commented 1 day ago

About the PR

A new command has been added for the admins. It allows those who have the "massban" admin tag to ban multiple accounts. It might be helpful if you check other server banlists to ban raiders. Or to be used in other needful purposes. It works this way: banmass "reason" "duration" "name1 name2 name3"

It also might help solve some of the issues, mentioned here: https://github.com/space-wizards/space-station-14/issues/13270

Why / Balance

It really helped to ban raiders that had paid their visit to other servers. Sort of a a preemptive strike. However, there is still a big problem of multiaccounts (We hope it will be solved some day). The command was used only to massban raiders, but we think it might have more purposes if used in right hands.

Technical details

A new file BanMassCommand.cs is added to the game files The whole system is based on BanCommand.cs A flag AdminFlags.MassBan is assigned to this command to control who can mass ban raiders/players image

Media

We have kindly translated a demonstration of the action of the console command for you image image

Requirements

Breaking changes

As far as we understand. there are no vital codebase changes

Changelog :cl: Schrodinger71 ADMIN:

Schrodinger71 commented 1 day ago

Many thanks to @jungarikjan for help in formatting the text

jungarikjan commented 1 day ago

We forgot to mention that the command has a slight issue The issue is that it says that the first nickname is not found. We don't really know why. So to prevent this from happening you might wanna duplicate the first nickname For example, banmass "reason" "duration" "name1 name1 name2 name3"

We hope the code somehow helps the admins and WizDens and that somebody will find a fix to such small issue of a command. It works though, but is a lil bit janky because of it xD

Also we want to thank all the developers and admins of SS14 for their immense hard work. We came to share and to help <3 Please know that we appreciate you very much.