Awesome MySQL Bans
AwesomeBans
Current Status
- Everything but lives is working. I also plan to add more checking queries in the future as well.
- I think the newest spigot builds let BungeeCord send the correct IPs through now. If this is true I won't need to add special bungee cord support
Planned for later releases
- Optional Lives usage for hardcore servers
- Custom message formatting through config
- Custom warning levels by command
- Staff checking and other queries
Features
- Multiple servers can link into the database for use with:
- Bans
- Informs banned player of reason, issuer and duration
- Mutes
- Prevent sign placing
- Prevent specified commands
- Past History Lookup
- Bans
- Warn users when their behavior is inappropriate
- Track and report warning level
- Notify staff when a banned player attempts to log in
- Notify staff with warning level when a player logs in
- Warning level is based on past punishments so staff can tell at a glance if a player has a history of poor behavior
- MySQL allows advanced look-ups of history
- All punishments issued against a player
- All punishments issued by a staff member (planned)
- Most recently issued punishments by all staff (planned)
- Prevent ban evasion - automatically ban new accounts logging into the server if an account has been banned on that ip. (accounts that have logged into the server before won't be affected by this)
The items logged for past history are:
- Type of punishment.
- Player who was punished.
- Staff member who issued the punishment.
- Reason for punishment.
- Duration of the punishment.
- Time the punishment was issued.
- Server the punishment was issued on. (as specified in config)
- Warning level associated with the punishment.
Commands
The following list is incomplete and still in development
- /warn <player> <reason> - warns the player of their improper behavior
- /mute <player> <duration> <reason> - mutes the player for the specified duration
- /ban <player> <duration> <reason> - bans the player for the specified duration
- /kick <player> <reason> - kicks the player with given reason
- /check <player> - shows a list of punishments.
- /checkdetail <record Id> - shows all the details of a specified punishment. Record Id's are shown when you /check a player
- /unban <player> - unbans a player
- /unmute <player> - unmutes a player
Duration Format: 1w2d3h4m5s = 1 week, 2 days, 3 hours, 4 minutes, 5 seconds
Or "perm" for permanent (sans quotes)
Permissions
Sub-bullets are included in parent bullet
- AwesomeBans.admin
- AwesomeBans.mod
- AwesomeBans.ban
- AwesomeBans.unban
- AwesomeBans.mute
- AwesomeBans.unmute
- AwesomeBans.check
- AwesomeBans.warn
- AwesomeBans.kick
- AwesomeBans.notify - notifies you of players warning level and muted status when they log in. Also when banned players try to log in.
- AwesomeBans.mod
Configuration
MySQL: Host: localhost Port: 3306 Username: root Password: password Database: minecraft ##included as part of the tablenames TablePrefix: AwesomeBans ##recorded on punishment records ServerName: AwesomeServer Lives: -- not used yet UseLives: true DefaultLives: 1 BanDuration: 1d ResetLives: 1 BuyURL: N/A ##if the plugin should broadcast punishments Broadcast: true ## If the plugin should override the default login messages. ## For players that get the plugin login notifications it will hide the default. ## If false, the default login message will show. OverrideJoinMessages: true Formatting: ##Prefix is shown before chat messages from the plugin. The rest of the formatting will be configurable in the future. Prefix: "&2[&aAwesomeBans&2]"
Requires:
http://dev.bukkit.org/server-mods/sqlibrary/
Java 7 Should now be java 6 compatible starting with v0.11
Inspired By
Awesomebans is inspired by FC_Bans and Destro168
Does this work with bungeecord network?
Hey! I want to use your plugin, but I want to update and add permanent bans, perm. IP bans and temp. IP bans. And last one - translations, can be used messages.yml (for example). If it's implemented, i am sorry :D Thanks
TheAcastus
I know some people are asking for an update so I just wanted to let everyone know that this plugin is not abandoned. I am currently working on completely rewriting all of my plugins to work a lot better and be easier to work with and update in the future. Most of my plugins are currently private and just on my server, but once I get this all done they should all be available on bukkit dev.
@moritzbruno
Does the console spit out any errors when this occurs? I'm not sure what could be causing this to happen.
This Plugin don´t ban When I´m banned I can still join
Hi! I really love the concept of your plugin, also it allows me to create a ban list on my website that just retrieves the data from the MySQL database, which is cool. Anyways, I cannot get the plugin to work on my server. I have correctly entered my database info, but every single time it just says, 'Could not establish a MySQL connect. Connection error' There is nothing wrong that I can find, so could you help me?
Could you integrate /tempban with specified (config or permissions - AwesomeBans.tempban.<time, in seconds or something>) per-rank and/or per-user length maximums?
It would also be awesome to have this accessible on a web server, if you're familiar with PHP.
@LBGmbH
Can you post the error using pastebin?
Hello, iam using your plugin, but its not working. When I start the server, there is a mysqlerror. I have filled in the config, the right data and its not working please help!
Please update.
Awesome, I'm liking the look of this. I currently use Ultrabans Lite, and while it is nice, it's getting outdated and several features have stopped working on newer versions. I like the ban evasion autoban :) Would it be possible to have some converters? Since moving of a thousands of lines strong database takes annoyingly long :P
Can you release the source?
keep it up this is the best banning plugin for 1.5.2
Thanks for looking into offline warnings!
Also is there a way when someone is banned trys to login on an alt, then the alt is banned aslong as the main account is banned?
this is just what i have been looking for. thnx for you effort for creating this.
but can you have a look to the ticket i have created ? http://dev.bukkit.org/server-mods/awesomebans/tickets/1-not-enough-args-when-doing-ban-player/
thnx :)
I'll look into offline warnings, can't guarantee anything though.
For the next version I plan to add a few more lookups such as:
I also will add a command to delete punishment records
This will probably be a week or two out though, after finals.
@DevonCWoodcomb
Also got an idea for thet when you warn players offline.
When a player logs in, It tells the player it has a warning, ( this only get showed with 1+ warning) the player can do a commands (/mywarnings or something like that) to see what warnings it has and how many
Then when you warn a player offline and it logs back in i knows he/she has a warning.
if you want to put my ideas in tickes, let me know ;)
@arriej
So you had sqlibrary installed and it still wouldn't work? The reason it might have appeared to work with the first version is because I forgot the "depends" line in plugin.yml, it won't actually work without it.
The reason I have it so you have to warn online players is because it doesn't do a lot of good if they are offline and don't see that they are warned.
And for permanent bans use perm as the duration, I forgot to put it in the description, but it's there now.
@DevonCWoodcomb
No i had that one in there while using that your last version, Because your older build did work. An other idea, Be able to warn people when they are not online, or haven't been on the server ( i am using this plugin. be we already have a map so its not a fresh start) Oh and maybe i don't know if it is possible but a transfer system from simple warnings to this system ?
Also, Is it possible to do not fill in a end date then they are just banned for a life time, The reason for this is that i don't want xrayers back on the server.
@arriej
Looks like you're missing http://dev.bukkit.org/server-mods/sqlibrary/
It's required for it to work.