-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ban method? Customizable? #2
Comments
Hi, I'm working on it. The plugin currently uses the
My idea is to add new commands:
|
That's good news, thanks for maintaining this tool. |
Please check BotBlocker-1.4.0-SNAPSHOT. Also check the Changelog. I have added a check so if the BanManager plugin is in BotBlocker will use its API to ban instead of the default Bukkit method. I tested it in my server and could see the banned user in the list correctly and unban it afterwards. If it works for you then I will set it as latest release. |
First attempt with the 1.4.0 version appeared to not work. I followed these steps:
However, I decided to try again. I replaced 1.4.0 with 1.3.0 and tried the same method. The account was banned and everything worked as expected for that version. Then I:
I'm able to correctly unban the account and rejoin the server with it. The only thing I don't fully understand is that the account UUID is not added to the players.yml file anymore, even after playing for a while and leaving the server. The account does seem immune to the plugin now though, so I have to assume that data is being stored elsewhere now (in the banmanager database?) I will test this further when I can get some people with untainted accounts to join and test for me, maybe I'll get a different result when an account that never joined before tries it. |
Wow, that's some good effort, thank you! TL;DR: Weird errors are weird. Let's test more. I propose renaming BanManager seems to be using its own database, probably in 1.3.0 -> 1.4.0 update errorYour issue when installing the new version confuses me a bit. In the first try you cleaned both Account not added to players.ymlThe account not being added to
What the code above does is simply check if a user must be banned and ban him (either vanilla or BanManager). And if the user is legit, it is added to the I will try to do the same from my side, testing with different accounts. Hopefully I have time for that this weekend. Regardless, I have some ideas:
And of course, if you've read this far, I accept suggestions :) |
Further testing provides these clues:
To clarify a few things:
|
Summary
I don't know the current method the plugin uses to ban the player because we haven't gotten to ban any users with it yet (I assume vanilla ban). But I would like to use banmanager and set a custom reason/message to redirect any legit user to get unbanned.
Basic example
banmanager:ban username reason (like "Suspicious Activity, visit [discord link] to appeal)
Motivation
I expect that if any legit new player gets caught in a false positive, this will give them an opportunity to 1) let me know about it and 2) get unbanned so they can play.
The text was updated successfully, but these errors were encountered: