public class BankObject
extends java.lang.Object
Constructor and Description |
---|
BankObject(iConomy plugin,
int id)
Create new BankObject
|
Modifier and Type | Method and Description |
---|---|
void |
addBankStatement(java.lang.String statement)
Deprecated.
Only for Untiy-Version
|
void |
addMember(long uid)
Deprecated.
Only for Unity-Version
|
void |
addMember(net.risingworld.api.objects.Player player)
Deprecated.
Only for Unity-Version
|
boolean |
addMoney(long money,
BankEvent.BankAddMoneyEvent.Cause Cause)
Add money to the bank account
|
boolean |
addMoney(long money,
BankEvent.BankAddMoneyEvent.Cause Cause,
boolean msg)
Add money to the bank account and show a GUI
|
BankObject |
getBank()
Get the BankObject
|
java.util.List<java.lang.String> |
getBankStatement()
Deprecated.
Only for Untiy-Version
|
java.lang.String |
getBusinessName()
Deprecated.
Only for Unity-Version
|
int |
getId()
Get the ID of the bank account
|
java.util.List<java.lang.Long> |
getMembers()
Deprecated.
Only for Untiy-Version
|
long |
getMin()
How much debt can the bank account incur?
|
long |
getMoney()
Get the money.
|
java.lang.String |
getMoneyAsString()
Get the money as formated String.
|
long |
getOwner()
Get the owner of the bank account
|
boolean |
isBusiness()
Deprecated.
Only for Unity-Version
|
boolean |
isDefault()
Is the bank account a default bank account?
|
boolean |
isMember(long uid)
Deprecated.
Only for Unity-Version
|
boolean |
isMember(net.risingworld.api.objects.Player player)
Deprecated.
Only for Unity-Version
|
void |
removeMember(long uid)
Deprecated.
Only for Unity-Version
|
void |
removeMember(net.risingworld.api.objects.Player player)
Deprecated.
Only for Unity-Version
|
boolean |
removeMoney(long money,
BankEvent.BankRemoveMoneyEvent.Cause Cause)
Remove money from the bank account
|
boolean |
removeMoney(long money,
BankEvent.BankRemoveMoneyEvent.Cause Cause,
boolean msg)
Remove money from the bank account and show a GUI
|
void |
setBusiness(boolean Business)
Deprecated.
Only for Unity-Version
|
void |
setBusinessName(java.lang.String BusinessName)
Deprecated.
Only for Unity-Version
|
void |
setDefault(boolean Default)
Change the bank account to a default bank account
|
void |
setMin(long Min)
Set the maximal debt of the bank account.
|
void |
setMoney(long money)
Set the money of the bank account
|
void |
setMoney(long money,
boolean msg)
Set the money of the bank account and show a GUI
|
void |
setOwner(long owner)
Set a new owner of the bank account
|
public BankObject(iConomy plugin, int id)
plugin
- The iConomy pluginid
- The new ID@Deprecated public void addBankStatement(java.lang.String statement)
statement
- The statement as String@Deprecated public java.util.List<java.lang.String> getBankStatement()
public int getId()
public long getOwner()
@Deprecated public java.util.List<java.lang.Long> getMembers()
@Deprecated public boolean isMember(net.risingworld.api.objects.Player player)
player
- The player@Deprecated public boolean isMember(long uid)
uid
- The uid of the player@Deprecated public java.lang.String getBusinessName()
public void setOwner(long owner)
owner
- The new owner as Long (UID)@Deprecated public void addMember(net.risingworld.api.objects.Player player)
player
- @Deprecated public void addMember(long uid)
uid
- @Deprecated public void removeMember(net.risingworld.api.objects.Player player)
player
- @Deprecated public void removeMember(long uid)
uid
- @Deprecated public boolean isBusiness()
@Deprecated public void setBusiness(boolean Business)
Business
- Business account yes or nopublic BankObject getBank()
public long getMoney()
public java.lang.String getMoneyAsString()
public void setMoney(long money)
money
- The money as Longpublic void setMoney(long money, boolean msg)
money
- The money as Longmsg
- If true, the Info-GUI is shownpublic boolean addMoney(long money, BankEvent.BankAddMoneyEvent.Cause Cause)
money
- The money as LongCause
- The causepublic boolean addMoney(long money, BankEvent.BankAddMoneyEvent.Cause Cause, boolean msg)
money
- The money as LongCause
- The causemsg
- If true, the Info-GUI is shownpublic boolean removeMoney(long money, BankEvent.BankRemoveMoneyEvent.Cause Cause)
money
- The moneyCause
- The causepublic boolean removeMoney(long money, BankEvent.BankRemoveMoneyEvent.Cause Cause, boolean msg)
money
- The moneyCause
- The causemsg
- If true, the Info-GUI is shownpublic boolean isDefault()
public void setDefault(boolean Default)
Default
- @Deprecated public void setBusinessName(java.lang.String BusinessName)
BusinessName
- public long getMin()
public void setMin(long Min)
Min
- The new max debt as Long