MaxBans
Support Spigot from 1.7.x to 1.12.x
MaxBans is a project I've been writing for my server, MaxGamer. I struggled to find a banning plugin that wasn't a joke, and the good plugins were all designed for Premium servers anyway. Nothing gave us the tools that SHOULD have been out there - Like temp mutes, temp IP bans, duplicate IP lookups, and good autocompletion!
It is thoroughly tested on an Offline-Mode server, so you can bet it's rock solid and feather light!
Databases
- MySQL
- SQLite (Flatfile)
Best Features
Here are the top ten features of MaxBans over other banning plugins:
- Full UUID support
- Ability to view players' previous username(s) - date of change
- Full server lockdown - Prevent anyone from joining with a custom message (Such as bot attacks)
- Offline player name auto completion
- Warnings system
- Duplicate IP detection
- DNSBL lookups to stop proxys!
- Multiline kick messages! No more running off the screen!
- Notifications when a banned player tries to join!
- All times are relative! (Eg. "You're banned for 4 minutes 6 seconds", not "You're banned til 5:43pm CST")
- Customize every colour!
- Block commands like /me when muted!
Commands
- /unban <name, IP or UUID>
- /ban <name, IP or UUID> <reason>
- /ipban <name, IP or UUID> <reason>
- /tempban <name, IP or UUID> <number> <minutes|hours|days|weeks|etc> <reason>
- /tempipban <name, IP or UUID> <number> <minutes|hours|days|weeks|etc> <reason>
- /mute <name or UUID>
- /tempmute <name or UUID> <number> <minutes|hours|days|weeks|etc>
- /kick <name, * for everyone or UUID>
- /checkip <name or UUID>
- /uuid
- /togglechat
- /dupeip <name, IP or UUID>
- /checkban <name, IP or UUID>
- /warn <name or UUID> <reason>
- /clearwarnings <name or UUID> <reason>
- /unwarn <name or UUID> - Removes a players most recent warning
- /unmute <name or UUID>
- /history [name] [number of records] - Displays a history of bans, kicks, mutes & more dealt
- /mbreload - Reloads the plugin
- /mbdebug - Outputs debug information for me if you're having issues!
- /mbwhitelist <name or UUID> - Allows the given user to bypass IP bans (Not regular bans! Eg, use for players with siblings who need to be IP banned)
- /ipreport - Basically, a mass /dupeip, on everyone who is online
- /lockdown [reason]
- /forcespawn - Teleports someone to the spawn (Twice, so /back won't work)
- /mbreload - Reloads maxbans
- /mbimport - Imports vanilla minecraft (And others) bans.
- /mbexport - Export bans to vanilla, MySQL or SQLite databases. (Allows swapping SQLite <-> MySQL), and others ban plugins.
- /rangeban <ip1-ip2> [reason] - Bans the IP range from ip1 to ip2 for the supplied reason.
- /temprangeban <ip1-ip2> <time> <hours/min/sec> [reason] - Temporary variant of above
- /unrangeban <ip> - Removes any RangeBan which overlaps with the given IP. Eg, if 127.0.0.1-127.0.0.5 is banned, unbanning 127.0.0.3 will lift the whole ban on 127.0.0.1-127.0.0.5.
Almost any command may have -s added in it to prevent announcing it, for example:
/tempban NewGuy101 -s 1 hour MaxBans is Awesome!
- Nobody will see the announcement that NewGuy101 was temp banned, just the fact he "has left the game."
If you want an in-depth analysis of each command, try here:
http://dev.bukkit.org/server-mods/maxbans/pages/command-tutorial/
Configuration Guide
http://dev.bukkit.org/server-mods/maxbans/pages/config-tutorial/
This is an in-depth guide on how to configure MaxBans :) If I've missed anything, ask in the comments!
Common Issues
http://dev.bukkit.org/server-mods/maxbans/pages/common-issues/
This is a list of common issues people have with MaxBans, such as plugin conflicts.
Features that will never implement
- Fines (Use your economy to do this!)
- Jails
- Regional bans
- Ban weightings
Ban Listing Webpage
Check out this guy's work for an amazing webpage setup to view MaxBans while using MySQL.
Demo (dont download from here): http://yive.me/maxbans/.
Its updated and is working on latest version of MaxBans!
You can download the updated version from here: https://github.com/FabioZumbi12/maxbans-php
- Added pagination;
- Fixed other ban pages not loading;
Metrics
This plugin uses Hidendra's plugin metrics system (http://mcstats.org/plugin/maxbans) which tracks server information including:
- A unique ID
- Java version
- Online/Offline mode
- Plugin & Server version
- OS name, version, architecture
- Number of CPU cores
- Players online
- Metrics version
These stats can be disabled using the PluginMetrics config file (BukkitServer/plugins/PluginMetrics/config.yml).
GeoIP Lookup
MaxBans will download a GeoIP.csv file, which allows it to look up the country of origin for IP addresses. The file is downloaded directly from maxmind GeopIP site. The file is only downloaded once (Unless it is renamed/removed).
FabioZumbi12:
Hello all. I am other dev and now i assuming the Project for bugfixes and possible improvements.
Netherfoam still busy but still online on comunity. I have a lot of time to code (i have a home work) and i can maintain this plugin (and my others) Always updated ;)
See ya o/
Where to clean a limit for the maximum time in /tempban?
Hello, I have a problem. In the configuration I set the maximum time a ban was 1 week, but when I ban one hour I have this error message
The Problem -> http://prntscr.com/b570d8 The Config -> http://prntscr.com/b5723a
@Synthhero1
there's no version for 1.9 out yet for this plugin, just wait for the developer to update it.
Another MAJOR bug. Herochat and maxbans wont work for 1.9.2 If you perform /mute to a player he can still chat after muting.
Hey, So Whenever I do /dupeip (IP) To check someone's other accounts, It keeps saying, "An internal error occurred while attempting to perform this command. Please help!
Max bans has a bug where you can only tempban for 10 Mins and 5 Secs. To fix this, download MaxBans version 2.3, this will also fix the /immune command.
Everything seems to be working fine in 2.3, if you dont care about the /immune command then the tempban feature is also working perfectly in 2.4.
2.3 Download: http://dev.bukkit.org/bukkit-plugins/maxbans/files/23-max-bans-2-3/
2.4 Download: http://dev.bukkit.org/bukkit-plugins/maxbans/files/24-max-bans-2-4-beta/
To use the immune command, do /immune <player name> <true or false> First enable will say "success", if you try to enable it while it already is enabled, it will give you an error message, to confirm that it's still working you could disable it with false, which should then say "success", then re-enable it which will once again give you a "success" message since it was disabled. When other players tries to ban you, the ban message still comes up in chat, but you do not get banned. Not sure what node you need to use this, im guessing maxbans.immune , I enabled it while in OP mode, you can also enable it for others if the permission node is incorrect/not working.
Maxtempban time = 10 Mins. and 5 Secs.
I cant tempban for any longer then 10mins and 5 seconds... also can anyone help me with "/unmute" i need the permission node?
@NoScripts
Really? Its been mentioned a 1000 times, the latest versions of this plugin sucks.
http://dev.bukkit.org/media/files/767/66/MaxBans.jar
Just use that one.
Also, it doesnt work on 1.9, but it is possible to update your selves *IF* you goto spigots site and and read the release info about spigot 1.9 They tell you how to fix plugins that MIGHT be using old API methods.
Hey, I love this plugin, but when I try to tempban someone, it wont let me do it longer than 10 min 5 seconds
@netherfoam Hi, I have a problem. When I start this plugin, I get this error:
http://pastebin.com/wBaeniJy
Hi, can anybody help me?
I wrote an any command from plugin, for example /ban SomePlayer Test and the only thing that's happening - i just see a command template in the chat. In this case - /ban <player> [-s] <reason>
Same thing in console
@AukiroAnk
Your retarded
@NyraDDos
Talk to the guy that designed the web interface.
@TortoiseSlayer
Your also retarded.
@SimplyBrandon1
Learn to read. There is at least 100 comments posted here about not using the latest version cuz it sucks. Use version 2.3
I need help, I cannot make a tempban longer than 10 mins and 5 secs, help!
I Ip-banned my self and I cant get unbanned, Owner unbanned me and also tried on Console and still I am ip banned.... Can someone help me?
Can I see older bans on the Webinterface?
I banned myself now I cant unban myself that's crap
14.01 21:14:37 [Server] INFO Failed to download MaxBans GeoIPDatabase
14.01 21:14:37 [Server] WARN at java.lang.Thread.run(Thread.java:745)
14.01 21:14:37 [Server] WARN at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
14.01 21:14:37 [Server] WARN at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
14.01 21:14:37 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
14.01 21:14:37 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
14.01 21:14:37 [Server] WARN at org.maxgamer.maxbans.MaxBans$1.run(MaxBans.java:137)
14.01 21:14:37 [Server] WARN at java.net.URL.openStream(URL.java:1038)
14.01 21:14:37 [Server] WARN at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
14.01 21:14:37 [Server] WARN at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836)
14.01 21:14:37 [Server] WARN java.io.FileNotFoundException: http://maxgamer.org/plugins/maxbans/geoip.csv
14.01 21:14:37 [Multicraft] Skipped 2 lines due to rate limit (30/s)
Hi I have an idea for your plugin you can bypass a mute a by leaving the server. could you maybe so that the mute only expires when the player is online i hope its a good idea greetings DerPsychiater
Error: