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
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
To check if LegendaryBans is enabled
if(getLegendaryBans() == null){
//its disabled
}else{
//its enabled
}