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 Aug 11, 2014@ItsLemonmelon
So I don't see anything wrong with the message file, what exactly is the issue?
-
View User Profile
-
Send Message
Posted Aug 11, 2014@ItsLemonmelon
XD Use pastebin.com or privatepaste.com it's neater... And readable.
-
View User Profile
-
Send Message
Posted Aug 11, 2014@ItsLemonmelon
Sure. Remember to blank out your database password etc if you're using MySQL/Syncing
-
View User Profile
-
Send Message
Posted Aug 11, 2014@netherfoam
Yes, I have. Want to see the config file?
-
View User Profile
-
Send Message
Posted Aug 11, 2014@mcredstonepro
I do plan to add them eventually :)
@ItsLemonmelon
Prefix for what? Tried a full restart instead of reload?
-
View User Profile
-
Send Message
Posted Aug 11, 2014Guys, does your config work? I can configuriate it but when I reload my server, the prefix and stuff doesn't change....
-
View User Profile
-
Send Message
Posted Aug 9, 2014Do you still plan to add IP mutes? I would find this as a very useful feature for my server :)
-
View User Profile
-
Send Message
Posted Aug 5, 2014@netherfoam
Yeh, well before 1.8 becomes availables will probably break player's shop. I'll keep an eye on QS's plugin page, and sorry if I've disturbed you here, I needed an immediate answer for QS future updates question
Again, sorry if I disturbed you :s
-
View User Profile
-
Send Message
Posted Aug 5, 2014@TNTUP
I don't expect you to understand, but I am working on updating MaxBans before QuickShop, the plugin interests me more. I no longer run a Minecraft server, so any code I do write is entirely for other people, practically for free. So, maybe when I finish rewriting MaxBans I will get to QuickShop, but until then, QuickShop still works unless someone changes their username. MaxBans is conceptually flawed without the uuid transition.
That is why QuickShop has not received much attention.
-
View User Profile
-
Send Message
Posted Aug 2, 2014You've been ignoring your other plugins you made, QuickShop, is outdated as hell and could have UUID support and conversion names to uuids for 1.8?? No answers, you seem not care about that plugin I had to comment here because you're active on this plugin, but not on QuickShop, update for 1.7.9's items and UUID support if possible this is the most better plugin I ever used, simpler than the others, shame if you stop developement on it :/
-
View User Profile
-
Send Message
Posted Jul 31, 2014Is there a download of this where we could edit it the plugin?
-
View User Profile
-
Send Message
Posted Jul 29, 2014@DeWilX
You'll want to edit your messages.yml file and add {reason} where you want the reason in the message. Or, you can delete messages.yml and regenerate the file, which will make the mute reason show up, but will remove any custom messages/translations you've added, if any.
If you want to view the default file, view it here https://github.com/netherfoam/MaxBans/blob/master/MaxBans/messages.yml
You only need to do this because originally MaxBans did not store a reason for mutes, so there was no {reason} variable for the announcement. Now there is, but the variable can't automatically be added to your messages in case you're using a translated version! :)
-
View User Profile
-
Send Message
Posted Jul 28, 2014@netherfoam Could you make to show up mute reason in chat? Because in database it's shows up, but in ingame not.
-
View User Profile
-
Send Message
Posted Jul 25, 2014@netherfoam
I was planning on setting up the database as I'm creating a network and don't want to have those banned as of when I actually go ahead and start to use maxbans on the server(s) that will be within the network.
-
View User Profile
-
Send Message
Posted Jul 24, 2014@Lilmacaroni
There's got to be thousands of MySQL installation videos. Use SQLite instead, MySQL is usually for things like websites which may want to read maxban's data
-
View User Profile
-
Send Message
Posted Jul 23, 2014@netherfoam, Do you ever plan on either making a tutorial via video as I've having troubles setting up my MySQL Database. Ohh, and if the video was to be in English that'd be awesome :)
-
View User Profile
-
Send Message
Posted Jul 19, 2014@glasseater8576
Check your MySQL config in the config.yml file, for some reason it seems the connection can't be made to the MySQL server. Have you checked that MySQL is running (It's a service), the port is correct, the user and pass are right and the database exists?
-
View User Profile
-
Send Message
Posted Jul 19, 2014I get this error when trying to connect with MYSQL I am using localhost and I am hosting it using MAMP from my computer (using php my admin) http://pastebin.com/PE5nTvmB
-
View User Profile
-
Send Message
Posted Jul 15, 2014@Thorn799
@Thorn799 Thanks! How would I setup a MySql Database? I really like that I would like that for staff to see. If you can tell me what I need to do in order to set it up that would be much appreciated! - Glass
-
View User Profile
-
Send Message
Posted Jul 13, 2014@glasseater8576
MySQL is a type of database that websites use, such as forum systems. BanManagement uses MySQL as well.
There is a web interface, but it's not as featured: http://yive.me/maxbans/