LegendaryBans

LegendaryBans Logo

mcstats

Source Code on BitBucket Read the wiki documentation about LegendaryMessages Report a bug with the plugin Make a paypal donation

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

CommandDescriptionPermission
/banBans a playerLegendaryBans.ban
/tempbanTempBans a playerLegendaryBans.tempban
/permbanPermBans a playerLegendaryBans.permban
/kickKicks a playerLegendaryBans.kick
/unbanUnbans a playerLegendaryBans.unban
/checkbanChecks if a player is bannedLegendaryBans.checkban
/warnWarns a playerLegendaryBans.warn
/clearwarningsClears a players warningsLegendaryBans.clearwarnings
/muteToggle Mute a playerLegendaryBans.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
}

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    62809
  • Created
    Jul 30, 2013
  • Last Released File
    Feb 23, 2015
  • Total Downloads
    3,238
  • License

Categories

Members

Recent Files