|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.mjolnir.mineconomy.ExteriorPlugin
public class ExteriorPlugin
Handles exterior classes reading/writing account values.
| 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 |
|---|
public ExteriorPlugin()
| Method Detail |
|---|
public double getBalance(org.bukkit.entity.Player p)
p -
public boolean setBalance(org.bukkit.entity.Player player,
double newBalance)
player - newBalance -
public boolean hasAccount(org.bukkit.entity.Player player)
player -
public boolean canAfford(org.bukkit.entity.Player player,
double amount)
player - amount -
public boolean add(org.bukkit.entity.Player player,
double amount)
player - amount -
public boolean subtract(org.bukkit.entity.Player player,
double amount)
player - amount -
public boolean transfer(org.bukkit.entity.Player playerFrom,
org.bukkit.entity.Player playerTo,
double amount)
playerFrom - playerTo - amount -
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||