Skip to content
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

Add bans and ip-bans #436

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add bans and ip-bans #436

wants to merge 1 commit into from

Conversation

Alvsch
Copy link
Contributor

@Alvsch Alvsch commented Dec 30, 2024

Description

Adds the ability to ban players via username and uuid, or ip.
The data is stored in banned-players.json and banned-ips.json

Testing

Joining the server while being banned and ip-banned
Joining the server without being banned
Loading data from vanilla servers

Checklist

Things need to be done before this Pull Request can be merged.

  • Add ban, ban-ip, pardon, pardon-ip and banlist commands
  • Fix kick message to include reason and expiration

Please follow our Coding Guidelines

@Alvsch Alvsch changed the title added bans and ip-bans Add bans and ip-bans Dec 30, 2024
@glitchy-sk8k9
Copy link

Maybe SQL or smth and not JSON

@DataM0del
Copy link
Contributor

Maybe SQL or smth and not JSON

it's an array, we don't need a database format for storing a list of IPs / usernames & ban reasons

@Snowiiii
Copy link
Member

@Alvsch any progress on this one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants