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/




-
View User Profile
-
Send Message
Posted Apr 18, 2014Will this be updated when 1.8 comes out?
-
View User Profile
-
Send Message
Posted Apr 16, 2014Hey netherfoam, this is an amazing plugin.
I know you have a offline-mode server, however, I highly recommend that you add an option to the config,(uuid-mode: true/false), for the servers that have online-mode servers. That way, the users of the plugin won't experience problems with the 1.8 update :)
I hope you take this into consideration.
-
View User Profile
-
Send Message
Posted Apr 16, 2014@netherfoam
It's probably a better idea to have /ban do a UUID ban and (if youre going to have a username ban) have a separate command for that or have something in the config to swap ban from using UUIDs and Usernames since (for user friendliness) /ban should do whatever people are most likely to expect it to do and I can only think of one or two situations where an online-mode server would ever want to do a username ban over a UUID ban. If you do decide to have /ban keep doing usernames and add /uuidban most people will probably just setup an alias in their commands.yml to override it anyway.
Also, do you plan on doing anything to allow current bans to be converted to UUID bans? If you implement something before username changes are possible it should be pretty easy to get the UUIDs of banned players from just their username, idk how hard it will be once people start changing their usernames.
-
View User Profile
-
Send Message
Posted Apr 15, 2014I love this plugin! More than Ban Management. Do you think you could add some kind of web interface like Ban Management?
-
View User Profile
-
Send Message
Posted Apr 14, 2014@bubblefatOnTheForums
Ummm? This isn't related to homes? :|
-
View User Profile
-
Send Message
Posted Apr 14, 2014Great Plugin!
-
View User Profile
-
Send Message
Posted Apr 14, 2014How can I do multiple homes in this?
-
View User Profile
-
Send Message
Posted Apr 12, 2014@mcredstonepro
A separate project is absolutely out of the question. The more I look at it, the more likely I am to use a /uuidban command, and possibly give staff a warning message when they try to /ban an account which has a valid UUID (Eg, is an online account).
-
View User Profile
-
Send Message
Posted Apr 12, 2014@netherfoam
Maybe you can make another plugin, using the same code of this plugin, to support UUID and still use the /ban command. It would take lots of server owners using this plugin time to get used to /uuidban command to ban players.
Maybe you can it a seperate project with a link like this: http://dev.bukkit.org/bukkit-plugins/maxbans-uuid/
-
View User Profile
-
Send Message
Posted Apr 10, 2014@netherfoam
I'm pretty sure you could just remain using /ban and other commands that you think would need a uuid version. Just have it so that once the command is executed then the plugin checks weather or not the server is offline or not with getOnlineMode.
-
View User Profile
-
Send Message
Posted Apr 10, 2014@marubal21
@Adondriel
Absolutely. As for when and how long until the feature is released, that could be debatable.
As my own server is offline, I'm going to be a bit wary of this. It's likely I'll write a /uuidban command, which functions like the /ban command does but for UUID's. Obviously that command will only work for online-mode servers, though.
-
View User Profile
-
Send Message
Posted Apr 7, 2014@marubal21
I came here to ask this too. :)
-
View User Profile
-
Send Message
Posted Mar 15, 2014how come the ban kept rollback when mbreload or server restart
-
View User Profile
-
Send Message
Posted Mar 13, 2014Will MaxBans be adding support for UUIDs in the future?
-
View User Profile
-
Send Message
Posted Mar 5, 2014@marubal21
It does, you can do a silent kick ban ect by adding the argument -s. Example; /kick netherfoam to good for this server. -s The -s works on most of the commands in MB that broadcast, very useful for IP bans.
-
View User Profile
-
Send Message
Posted Mar 5, 2014Does the plugin announce to the server when a player has been banned? If so, is it possible to not let players know when someone is banned?
-
View User Profile
-
Send Message
Posted Mar 4, 2014@WsupPanda
How's it unsafe? Having someone's IP means nothing, if you're worried about users 'hacking'. Though I will have a look into it for future reference.
-
View User Profile
-
Send Message
Posted Mar 4, 2014Theres an issue on my server, by typing /checkban , and then pressing tab, it gives players a large list of IPs, I don't think this is safe, how can I prevent it?
-
View User Profile
-
Send Message
Posted Feb 27, 2014@XtenDvas
There's no way to currently set a table prefix.
@Chalkie19
Sounds like the server is closing the syncer's connection for some reason, but the stacktrace you sent me says that the syncer closed the connection. Can you check on the Syncer what gets printed out with debug on?
@marubal21
You should read up on these: http://dev.bukkit.org/bukkit-plugins/maxbans/pages/notes-on-bungee/
And
http://dev.bukkit.org/bukkit-plugins/maxbans/pages/sync-example-config/
Also, if you haven't already, http://dev.bukkit.org/bukkit-plugins/maxbans/pages/ban-syncing/
-
View User Profile
-
Send Message
Posted Feb 26, 2014To use with bungee do i only need to set it to true?