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/
Why do my bans/mutes all get reset on server restart?
@PekiLP
yes you can
Can i use this on 1.7.9 ?
@Vifury
How you fix? And where you find the 2.6 version?
@sean6150
i think
it won't add anyone to banlist
@FabioZumbi12
@XxDawnsusxX
@maxthemango
@Youtube_thejust219
All of you use version 2.3. It works and that's before another dude took away. I only had to change the .jar file and I left all of the folder files alone and it works fine. It kept my config that I made. I was using 2.6. My server I develop is running Spigot 1.8.8.
The ban limit thing is bugged or something, saying Ban time it too long! Reducing to ban limit! (1449316466944). So the default 1 week ban is reduced to 10 minutes and 5 seconds.
I think there's a problem with the /tempban, because of the maximum length, I tried to tempban my test account for 1 day, using "/tempban xSandwich 1 day Hacking jk" (Don't ask) then, this came up http://prntscr.com/95dovm
There's no errors in the console either
plugin looks good. i hope it will add prefixes to the tables in mysql so it wont mixes up with present tables in the database.
@IsraelPaulo
http://dev.bukkit.org/bukkit-plugins/maxbans/files/26-max-bans-2-6/
Hey,
Have the Plugin for 1.7.X/1.8.X
Please what is the download Link
... I am Brasilian my inglish is not very good thanks.
/tempban timer limit is always 10 minutes. How can change this? On config file i changed to a large time but has no effect.
When you warn a player they do not get sent a message saying they have been warned. Is that an error or is it suppose to be like that?
Whenever i try to DupeIP someone that is offline I get this:
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880)
12.10 03:44:05 [Server] WARN at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043)
12.10 03:44:05 [Server] WARN at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767)
12.10 03:44:05 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181)
12.10 03:44:05 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
12.10 03:44:05 [Server] WARN at org.maxgamer.maxbans.commands.CmdSkeleton.onCommand(CmdSkeleton.java:119)
12.10 03:44:05 [Server] WARN at org.maxgamer.maxbans.commands.DupeIPCommand.run(DupeIPCommand.java:51)
12.10 03:44:05 [Server] WARN java.lang.NullPointerException
I am most likely not using the current version and my server is 1.7/1.8 .
Thanks in advance
@Youtube_thejust219
follow up, players can message me when they're muted/other commands
Any clue on why I can't tempban and it "REDUCES LIMIT TO 10 minutes 5 seconds" ? My tempban limit is set to 1 week so? Please reply, I can't give temp bans to people who give death threats
I would like you to add a feature to check the banlist/warnlist/mutelist in-game. I don't want to set up the website.
Since when I looked at the tickets 0 had been answered, I'm going to post my problem HERE!
So. Here's my config for warnings: http://pastebin.com/gVbRS7Ls
Here's my problem: Commands not being executed, no console log of the commands, nothing happens when the warn command is executed besideds a warning broadcast.
You could create an API with events