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/
Nice plugin :3
Please add singular/plural translation (Day, days ecc...)
when i ban a player, he will still join, how to fix this?
Problem?
When i change the Text in the "Messages" yml and try to Change the "Lockdown line" IT DOESNT MATTER i just changed 1 letter so see if it works... nope, why does ist not work?
No Console error
Spigot 1.8.8
How do i fix this?
Error for spigot 1.12:
[15:27:37] [Server thread/ERROR]: Error occurred while enabling MaxBans v2.7 (Is it up to date?)
java.lang.NoSuchMethodError: org.bukkit.configuration.file.YamlConfiguration.load(Ljava/io/InputStream;)V
at org.maxgamer.maxbans.Msg.reload(Msg.java:30) ~[?:?]
at org.maxgamer.maxbans.MaxBans.onEnable(MaxBans.java:91) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:377) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:327) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544) [Spigot.jar:git-Spigot-d5dfb24-ed8c725]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
It seems you can no longer load YAML documents with InputStreams.
Omg, tks so much for this plugin, it is life. Keep fixing bugs. :)
Can you add option to see list of banned players (with page turning via command)? /history command can show only recent punishments, because earlier bans doesn't fit in chat. Your plugin is simply the best. I used AdvancedBan,but your plugin provides much better ip functionality.
Hello, because of what I can not banned during the game with the command / tempban
ALL : THE PERMISSION FOR THE COMMANDS ARE : maxbans.command.
FOR EXAMPLE : maxbans.tempmute !
In reply to Forge_User_84020578:
In reply to Forge_User_84020578:
In reply to Timmy360xMC:
In reply to Forge_User_84020578:
In reply to Timmy360xMC:
In reply to Forge_User_84020578:
In reply to Forge_User_84020578:
# Sync is an advanced feature of MaxBans.
# It only applies to server owners who want to BAN/etc Players using a WEBPAGE, such as PHP Script
# Or owners who want two servers to have the SAME banlist!
# This option is in BETA! I take no responsibility if it breaks, though I will endeaver to fix it.
version: 2.0
lockdown: false
lockdown-reason: ''
auto-dupeip: false
history-expirey-minutes: 525600
warnings:
expirey-in-minutes: 1440
actions:
'1': '/kick {name} You have been warned: \n{reason}'
'2': '/kick {name} You have been warned 2 times: \n{reason}'
'3': '/kick {name} You have been warned 3 times: \n{reason}'
'4': '/kick {name} You have been warned 4 times: \n{reason}'
'5': '/kick {name} You have been warned 5 times: \n{reason}'
'6': '/tempban {name} 1 hour You have been warned 6 times: \n{reason}'
'7': '/tempban {name} 3 hour You have been warned 7 times: \n{reason}'
'8': '/tempban {name} 5 hour You have been warned 8 times: \n{reason}'
'9': '/tempban {name} 1 day You have been warned 9 times: \n{reason}'
'10': '/tempban {name} 7 day You have been warned 10 times: \n{reason}'
max: 10
update-check: false
default-reason: Not following the rules.
appeal-message: Vist http://austinfrg.com/banappeal/ to Appeal.
filter-names: true
dnsbl:
use: true
servers:
- bl.spamcop.net
- sbl.spamhaus.org
notify: false
kick: false
bungee: false
sync:
use: false
server: false
host: 127.0.0.1
port: 2711
pass: passwdpasswd
debug: false
database:
mysql: false
user: root
pass: passwd
host: localhost
port: 3306
name: maxbans
read-only: false
What are the perms to use mute and tempban and stuff can you add the perm to set the limet of how meny days a staff temp bans a player pls!
Permision for /ban & /tempban &/unban plz :)
The mute reason is not working
I have a few issues Im experiencing.. I dont know if it is my server itself or maxbans, but here they are:
/dupeip isnt working - causing an internal error
/ipreport - not a command (apparently)
/uuid - causing an internal error
You say I can block certain commands when players are muted? I would like to know how becasue currently they can /msg and /helpop, etc.
Change the Temp Ban time limit to be set to at least a month?
Hope I get some help, especially with dupeip and uuid because that is quite necessary. As well as the blocked commands.