Merge remote-tracking branch 'upstream/master'

This commit is contained in:
mung3r 2012-12-16 14:28:56 -08:00
commit a722371d18
3 changed files with 13 additions and 13 deletions

View File

@ -98,7 +98,7 @@ public interface Economy {
*
* @param playerName
* @param amount
* @return
* @return True if <b>playerName</b> has <b>amount</b>, False else wise
*/
public boolean has(String playerName, double amount);
@ -124,7 +124,7 @@ public interface Economy {
* Creates a bank account with the specified name and the player as the owner
* @param name
* @param player
* @return
* @return EconomyResponse Object
*/
public EconomyResponse createBank(String name, String player);
@ -138,7 +138,7 @@ public interface Economy {
/**
* Returns the amount the bank has
* @param name
* @return
* @return EconomyResponse Object
*/
public EconomyResponse bankBalance(String name);
@ -147,7 +147,7 @@ public interface Economy {
*
* @param name
* @param amount
* @return
* @return EconomyResponse Object
*/
public EconomyResponse bankHas(String name, double amount);
@ -156,7 +156,7 @@ public interface Economy {
*
* @param name
* @param amount
* @return
* @return EconomyResponse Object
*/
public EconomyResponse bankWithdraw(String name, double amount);
@ -165,7 +165,7 @@ public interface Economy {
*
* @param name
* @param amount
* @return
* @return EconomyResponse Object
*/
public EconomyResponse bankDeposit(String name, double amount);
@ -173,7 +173,7 @@ public interface Economy {
* Check if a player is the owner of a bank account
* @param name
* @param playerName
* @return
* @return EconomyResponse Object
*/
public EconomyResponse isBankOwner(String name, String playerName);
@ -181,7 +181,7 @@ public interface Economy {
* Check if the player is a member of the bank account
* @param name
* @param playerName
* @return
* @return EconomyResponse Object
*/
public EconomyResponse isBankMember(String name, String playerName);

View File

@ -630,7 +630,7 @@ public class Items {
* Single item search function, for when we only ever want to return 1 result
*
* @param searchString
* @return
* @return ItemInfo Object
*/
public static ItemInfo itemByName(String searchString) {
ItemInfo matchedItem = null;
@ -706,7 +706,7 @@ public class Items {
* Joins elements of a String array with the glue between them into a String.
* @param array
* @param glue
* @return
* @return Concacted Array combined with glue
*/
public static String join(String[] array, String glue) {
String joined = null;
@ -729,7 +729,7 @@ public class Items {
* Joins elements of a String array with the glue between them into a String.
* @param list
* @param glue
* @return
* @return Concacted Array combined with glue
*/
public static String join(List<String> list, String glue) {
String joined = null;

View File

@ -44,7 +44,7 @@ public class Permission_Privileges extends Permission {
@EventHandler(priority = EventPriority.MONITOR)
public void onPluginEnable(PluginEnableEvent event) {
if (permission.privs == null) {
Plugin perms = plugin.getServer().getPluginManager().getPlugin("SimplyPerms");
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Privileges");
if (perms != null) {
if (perms.isEnabled()) {
@ -58,7 +58,7 @@ public class Permission_Privileges extends Permission {
@EventHandler(priority = EventPriority.MONITOR)
public void onPluginDisable(PluginDisableEvent event) {
if (permission.privs != null) {
if (event.getPlugin().getDescription().getName().equals("SimplyPerms")) {
if (event.getPlugin().getDescription().getName().equals("Privileges")) {
permission.privs = null;
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), permission.name));
}