-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
admin2: refactor ban functionality (resolves #151) #437
Conversation
Requires further investigation & future refactoring
Here are a couple of things I ran into while testing (all except the very last are manual bans from the ban tab, not the players tab):
|
Fixed.
Fixed.
Added a line to reset the ban duration to default when the widget is shown, which should fix this.
Fixed.
I think it's more of a question rather than a warning but if anyone else feels otherwise it's easy to change.
Partially fixed. I had to dig around the serverside code some more to figure out how the ban list sync was working. New bans should appear in the ban list as soon as they are added. It's not outputting to server log/chatbox currently, added that to my todo list.
Correct.
There isn't a ton of room in those messagebox widgets, but I'll play with them and see what works.
Just reduced the horizontal padding by 50%.
Added to todo list. |
I've finally got around to crossing off the rest of my todo list and am calling this done and ready for more testing. I "fixed" the unimplemented ban/unban commands by just removing them - if there are enough complaints I'll go ahead and get them added back in. |
To satisfy #151
This PR redesigns the add ban widget. It can be accessed by selecting a player and clicking "Ban" in the main tab, or clicking "Add ban" from the player tab. When accessed from the main tab it will autofill the target player's IP and serial. You can chose whether to add either the IP or serial (or both) to the ban.
Some remaining tasks:
banip
andbanserial
commands:While there are some remaining tasks I consider this ready for testing.I haven't been able to test this with multiple players so I don't know if everything is working properly, especially the sync of added/deleted bans in the bans tab.