magefree / magefree/mage

Server: add bans by IP and usernames (rework admin tools)

Open
#6,543 0 comments 0 reactions 0 assignees View on GitHub
enhancement server
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Current version have special admin console (#5388). It can block users but it works with real users only and have many limitations like support "registration only server" or can ban only user.

It will be useful to add:
* [ ] add support of servers with disabled registration;
* [ ] add ban by IP;
* [ ] add ban by name;
* [ ] add chat mute (current version supports only online players);
* [ ] improve or rework admin tools to support new features (bans table list, see below);

So new ban mechanics must be rewrote and all ban informations must be removed from user table to special tables. I recommends to use new bans table with all bans records. That table can contains fields:
* date/time created;
* admin/moderator name;
* user ID to ban or mute
* user name to ban or mute (case insensitive and `*` mask support);
* IP to ban or mute (mask `*` support);
* restriction type (ban, chat mute, etc);
* end date;
* reason.

And all that settings can be checked on user's connection or chat send.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.