LegendaryBans
Notes
If you are recieving an update message in game and its not on the download page here it means there is an update but bukkit hasnt approved it yet
About
LegendaryBans is a easy to use ban management system for your server. It has an api so other developers can create bans or warnings with their plugins. It stores bans in a mysql database so you can display your banlist on the website.
Features
- Ban players
- tempban players
- permban players
- mute players
- Unban players
- Warn players
- Clear a players warnings
- Kick players
- Display bans and warnings on your website
- Automatic Updates (Optional in config)
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Automatic updating
To enable or disable the automatic updating feature in legendary bans just go into the config.yml and change the AutoUpdate to either true or false
Data Collection
This plugin collects data from https://api.mojang.com/. It is used for getting the uuid of offline players to have the ability to ban the user byname if this wasnt in the plugin you would need to know their uuid to ban them
Setup
- Download the plugin
- Install it to the /plugins folder
- Then do a quick server restart
- Edit the config to connect to the database
- Restart the server
Commands & Permissions
Command | Description | Permission |
---|---|---|
/ban | Bans a player | LegendaryBans.ban |
/tempban | TempBans a player | LegendaryBans.tempban |
/permban | PermBans a player | LegendaryBans.permban |
/kick | Kicks a player | LegendaryBans.kick |
/unban | Unbans a player | LegendaryBans.unban |
/checkban | Checks if a player is banned | LegendaryBans.checkban |
/warn | Warns a player | LegendaryBans.warn |
/clearwarnings | Clears a players warnings | LegendaryBans.clearwarnings |
/mute | Toggle Mute a player | LegendaryBans.mute |
To-Do
- Request ideas below
Hooking into LegendaryBans
Add this to the bottom of your class
private LegendaryBans getLegendaryBans() { Plugin pl = plugin.getServer().getPluginManager().getPlugin("LegendaryBans"); if (pl == null || !(pl instanceof LegendaryBans)) { return null; } return (LegendaryBans) pl; }
To call the LegendaryBans API use the following
getLegendaryBans().api
To check if LegendaryBans is enabled
if(getLegendaryBans() == null){ //its disabled }else{ //its enabled }
very nice, :)
Can you please add an immunity command? like /immunity <player> so if staff bans him, he wont get banned or kicked or muted
I was testing this out to possibly use on my server and so far it has almost everything I would want/need in a banning plugin. I do have a few problem with it and would like to suggest a few things. Biggest one for me, the punishment records are not kept. Obviously bans are stored but what about warns, kicks, mutes, tempbans ect.. I would like to see all of these permanently stored so staff can go back and check a players record. On my server the first offense for say grief, is a 5 day ban. The next time is a full ban. How can we check to see if it's their first offense if records are removed? Also to go along with that /checkban should not just show if that player is currently banned but if they have ever had any punishments and list them all with reasons. Other than that I love the plugin. Keep it up and let me know what you think of my suggestions.
edit: I also agree there should be a /tempmute name time reason
It's a great plugin, but our server have sometimes a few prolems with the mysql connection and when they lost the plugin is useless. Is a ban.yml or anything in that direction planned so that the banned players are really banned even if the sql database is down?
I'm trying to make an add-on for this and have been having an issue. This probably isn't the best place to put this because the error isn't having to do with this plugin, but I think someone may be able to help me.
Basically I want a GUI to show up when the command /punish (alias: /p) is used and then run a have that player run a command when a specific item is clicked.
Main Code: http://pastebin.com/eAvTcgqL
Idea: Temporary mute
Does it list information about the banned player in a file? (who banned player, when, time,...)
@kompostak99
Sure it wont be in the first version as its already waiting for bukkit to approve it
cann you add /mute command?