Package me.playernguyen.opteco.api
Interface IOptEcoAPI
- All Known Implementing Classes:
OptEcoAPI
public interface IOptEcoAPI
-
Method Summary
Modifier and Type Method Description boolean
addPoints(double amount)
Add points into player's accountjava.lang.String
getCurrencySymbol()
Get the currency symboljava.util.UUID
getPlayer()
API Player interactivedouble
getPoints()
Get points of playerboolean
hasAccount()
Check whether the account that exist or notboolean
isPending()
Check whether player is on pending transaction or notboolean
setPoints(double amount)
Set points of playerboolean
takePoints(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
-