Interface MonetaryPolicy


public interface MonetaryPolicy
Shared economic settings, implemented by an add-on (for example CapitalMarket) and registered with Bukkit's ServicesManager. Core never implements it. Only the registration with the highest priority is used, and consumers must keep working without one.
  • Method Summary

    Modifier and Type
    Method
    Description
    budget(String channel)
    Today's maximum serverPay spend for a channel.
    double
    Loan rate per day.
    double
    Savings rate per day, for example 0.0028 for about 2% a week.
  • Method Details

    • savingsRatePerDay

      double savingsRatePerDay()
      Savings rate per day, for example 0.0028 for about 2% a week.
    • loanRatePerDay

      double loanRatePerDay()
      Loan rate per day.
    • budget

      OptionalLong budget(String channel)
      Today's maximum serverPay spend for a channel. By convention the channels are "savings", "jobs" and "buyer".
      Returns:
      the budget, or empty for "no opinion, use your own config"