Interface CreditsService


public interface CreditsService
Manages player heist credits with Cause tracking.
  • Method Details

    • getCredits

      int getCredits(@NotNull @NotNull UUID playerId)
    • has

      boolean has(@NotNull @NotNull UUID playerId, int amount)
    • deposit

      @NotNull @NotNull TransactionResult deposit(@NotNull @NotNull UUID playerId, int amount, @NotNull @NotNull Cause cause)
    • withdraw

      @NotNull @NotNull TransactionResult withdraw(@NotNull @NotNull UUID playerId, int amount, @NotNull @NotNull Cause cause)
    • setCredits

      @NotNull @NotNull TransactionResult setCredits(@NotNull @NotNull UUID playerId, int amount, @NotNull @NotNull Cause cause)