EconomyHandler

public class EconomyHandler

Created by MagmaGuy on 17/06/2017.

Constructors

Link copied to clipboard
public void EconomyHandler()

Functions

Link copied to clipboard
public static void addCurrency(UUID user, double amount)
Link copied to clipboard
public static double checkCurrency(UUID user)
public static double checkCurrency(UUID user, boolean databaseAccess)
Link copied to clipboard
public static String formatCurrency(double amount)
Formats a currency amount to 2 decimal places for player-facing display.
Link copied to clipboard
public static boolean refundPayment(UUID user, double amount)
Returns an aborted purchase without diverting the refund into gambling debt.
Link copied to clipboard
public static void setCurrency(UUID user, double amount)
Link copied to clipboard
public static void subtractCurrency(UUID user, double amount)
Link copied to clipboard
public static boolean tryWithdraw(UUID user, double amount)
Checked purchase path.