me.mjolnir.mineconomy
Class ExteriorPlugin

java.lang.Object
  extended by me.mjolnir.mineconomy.ExteriorPlugin

public class ExteriorPlugin
extends java.lang.Object

Handles exterior classes reading/writing account values.

Author:
MjolnirCommando

Constructor Summary
ExteriorPlugin()
          Creates new ExteriorPluginTranslator object
 
Method Summary
 boolean add(org.bukkit.entity.Player player, double amount)
          Returns true if specified amount is added to specified account
 boolean canAfford(org.bukkit.entity.Player player, double amount)
          Returns true if specified player has specified amount in their account.
 double getBalance(org.bukkit.entity.Player p)
          Returns the balance of the specified player.
 java.lang.String getName()
          Returns the name of MineConomy
 boolean hasAccount(org.bukkit.entity.Player player)
          Returns true if specified player has an account.
 boolean setBalance(org.bukkit.entity.Player player, double newBalance)
          Sets the balance of the specified player.
 boolean subtract(org.bukkit.entity.Player player, double amount)
          Returns true if specified amount is subtracted from specified account
 boolean transfer(org.bukkit.entity.Player playerFrom, org.bukkit.entity.Player playerTo, double amount)
          Returns true if specified amount is added to specified from account and subtracted from specified to account
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExteriorPlugin

public ExteriorPlugin()
Creates new ExteriorPluginTranslator object

Method Detail

getBalance

public double getBalance(org.bukkit.entity.Player p)
Returns the balance of the specified player.

Parameters:
p -
Returns:
double

setBalance

public boolean setBalance(org.bukkit.entity.Player player,
                          double newBalance)
Sets the balance of the specified player. Returns true if completed without error.

Parameters:
player -
newBalance -
Returns:
boolean

hasAccount

public boolean hasAccount(org.bukkit.entity.Player player)
Returns true if specified player has an account.

Parameters:
player -
Returns:
boolean

canAfford

public boolean canAfford(org.bukkit.entity.Player player,
                         double amount)
Returns true if specified player has specified amount in their account.

Parameters:
player -
amount -
Returns:
boolean

add

public boolean add(org.bukkit.entity.Player player,
                   double amount)
Returns true if specified amount is added to specified account

Parameters:
player -
amount -
Returns:
boolean

subtract

public boolean subtract(org.bukkit.entity.Player player,
                        double amount)
Returns true if specified amount is subtracted from specified account

Parameters:
player -
amount -
Returns:
boolean

transfer

public boolean transfer(org.bukkit.entity.Player playerFrom,
                        org.bukkit.entity.Player playerTo,
                        double amount)
Returns true if specified amount is added to specified from account and subtracted from specified to account

Parameters:
playerFrom -
playerTo -
amount -
Returns:
boolean

getName

public java.lang.String getName()
Returns the name of MineConomy

Returns:
boolean