Package me.playernguyen.opteco.api
Interface IOptEcoAPI
- All Known Implementing Classes:
OptEcoAPI
public interface IOptEcoAPI
-
Method Summary
Modifier and Type Method Description booleanaddPoints(double amount)Add points into player's accountjava.lang.StringgetCurrencySymbol()Get the currency symboljava.util.UUIDgetPlayer()API Player interactivedoublegetPoints()Get points of playerbooleanhasAccount()Check whether the account that exist or notbooleanisPending()Check whether player is on pending transaction or notbooleansetPoints(double amount)Set points of playerbooleantakePoints(double amount)Take points out of player's account
-
Method Details
-
hasAccount
boolean hasAccount()Check whether the account that exist or not- Returns:
- boolean has this account on database or not
-
setPoints
boolean setPoints(double amount)Set points of player- Parameters:
amount- amount you want to set- Returns:
- boolean is set or not
-
getPoints
double getPoints()Get points of player- Returns:
- double balance of that player
-
isPending
boolean isPending()Check whether player is on pending transaction or not- Returns:
- boolean is pending or not
-
getPlayer
java.util.UUID getPlayer()API Player interactive- Returns:
- Player
-
addPoints
boolean addPoints(double amount)Add points into player's account- Parameters:
amount- how much- Returns:
- is added or not
-
takePoints
boolean takePoints(double amount)Take points out of player's account- Parameters:
amount- how much- Returns:
- is taken or not
-
getCurrencySymbol
java.lang.String getCurrencySymbol()Get the currency symbol- Returns:
- String currency symbol
-