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 Mar 30, 2015@Paxination
Ehh, it is banning their UUID's by default. /ban UUID is just an option if you in some cases only know the UUID of a player.
I know the UUID support isnt that good yet, but we've literally just taken over this big plugin - we are on it though, an fix-update will be out soon.
@Pablo_M98
Well, with the current bugs then yes, I recommend using the 1.7 MaxBans for offline servers.
But as said, an update is comming out.
-
View User Profile
-
Send Message
Posted Mar 29, 2015@iversen0
Then, you recommend use the latest versions on a offline server?
-
View User Profile
-
Send Message
Posted Mar 29, 2015Btw, the UUID support on this is crap. You have to literally /ban UUID to ban a player on their UUID. Who is gonna try and type out that long ass annoying number? /ban playername should ban on their UUID automatically. Why is the plugin just banning on playernames by default?
-
View User Profile
-
Send Message
Posted Mar 29, 2015@ThisUsernameIsMine
@Pablo_M98
Well. "working" is a tricky question when we talk about offline servers.... UUID's simply don't. Every player gets a fake UUID on offline mode. ^ But the plugin itself is fine on offline mode, which yes, is "It is thoroughly tested on an Offline-Mode server," (play.maxgamer.org). But UUID support is not helping much.
@windoffreedom
Being worked on.
-
View User Profile
-
Send Message
Posted Mar 28, 2015Will you ever add like maxbans.exempt ?
-
View User Profile
-
Send Message
Posted Mar 28, 2015@Pablo_M98
It is supposed to, since (description):
Unless stated otherwise (check for possible caveats).
-
View User Profile
-
Send Message
Posted Mar 28, 2015Latest versions works fine on a offline server?
-
View User Profile
-
Send Message
Posted Mar 28, 2015In new version does not work /ipreport. Fix please!
-
View User Profile
-
Send Message
Posted Mar 26, 2015@zuzzas
The old/outupdated 1.7 source can be found on Netherfoams' hithub.
But we will not share the updatedó source code we (joe & me) are coding for now.
-
View User Profile
-
Send Message
Posted Mar 26, 2015Hi, do you maintain a source code repo for a new version?
-
View User Profile
-
Send Message
Posted Mar 26, 2015@Paxination
When a version is "Beta" you should just always take a backup of the db, doesn't take more than 2 minutes. If there was any critical bugs, I would've noticed, and probably wouldn't release the *beta* update yet. But I understand your concern.
@Icabash
:)
-
View User Profile
-
Send Message
Posted Mar 25, 2015@Paxination
You should try being more friendly! It will get you a long way in life. :)
At the time of my writing that comment, the plugin could absolutely have been considered "not working" without UUID support. Consider that the main purpose of this plugin is to ban players. If the purpose of a ban is to rid the server of a player, but the bans can be bypassed with a simple name change, then the bans (and by extension, the plugin) are not working as intended. The plugin, therefore, could be considered broken. It was running, but not working to fulfill its primary function.
Also, while there may be some ways around the issue, it's very important to note that just because something is fixable doesn't mean that it isn't broken. You should take that to heart before you go around insulting people.
@Paxination
There is plenty of information on how to back up live databases on Stackexchange and other websites. Backups can be taken with no downtime whatsoever (Just an increase in resource usage.)
Unless, of course, you're talking about the downtime caused by stopping and starting the server to load a plugin (which really isn't very much).
@iversen0
Thank you so much for doing this! :)
-
View User Profile
-
Send Message
Posted Mar 25, 2015@iversen0
And well aware that we could back it up, but it was at the time of my post that we fount out that maxbans has updated and my co-owner had just finished maintenance like, 2 hours before that. So we didnt want to take the server down any more for the day.
That and he's a DBA irl. So things like this he's weary about.
-
View User Profile
-
Send Message
Posted Mar 25, 2015@Paxination
You won't lose any ban db - you could just have taken a backup of it if you were afraid of losing data....
-
View User Profile
-
Send Message
Posted Mar 25, 2015@Icabash
How did I miss this comment?
Then I would call you an idiot. It works just fine. And if you even slightly knew how to use the features of this plugin and of spigot, you'd know (everyone here would know) how to get around the UUID issues.
Aliases.
as you see, my aliase is designed to ban on both minecraft and maxbans. minecraft makes sure to get the UUID bant, while maxbans still does its thing.
-
View User Profile
-
Send Message
Posted Mar 25, 2015How does this update affect current databases? As im a bit skeptical to update as we dont want to lose our massive ban db.
Could you post the new mysql statements that update the database so I can be sure it wont crap it out?
-
View User Profile
-
Send Message
Posted Mar 25, 2015@justin393
Well, it is, so go ahead and download ;)
@hetjoshi
Will have a look at it.
-
View User Profile
-
Send Message
Posted Mar 24, 2015@iversen0
Is this compatible with servers in online mode? Because I really like the concept of this.
-
View User Profile
-
Send Message
Posted Mar 24, 2015@iversen0
My plugins Custom enchantments seems to stop working and essentials also had an error before.
-
View User Profile
-
Send Message
Posted Mar 23, 2015Edited *24-03* I released a beta version of the UUID supportive new MaxBans. Haven't found any errors yet, so please, report them to me via. PM, or under "Tickets".
@PixealCarftOwner
We're this far in the progress:
-Having UUID support for /dupeip
-/togglechat added
-/uuid works
So, in about a day or two I hope :)