package com.yourname.premiumah.economy;

import org.bukkit.OfflinePlayer;

import java.text.DecimalFormat;

public final class NoopEconomyService implements EconomyService {
    private static final DecimalFormat FORMAT = new DecimalFormat("#,##0.##");

    @Override
    public void reload() {
    }

    @Override
    public boolean isAvailable() {
        return false;
    }

    @Override
    public String providerName() {
        return "Unavailable";
    }

    @Override
    public boolean has(OfflinePlayer player, double amount) {
        return false;
    }

    @Override
    public boolean withdraw(OfflinePlayer player, double amount) {
        return false;
    }

    @Override
    public boolean deposit(OfflinePlayer player, double amount) {
        return false;
    }

    @Override
    public String format(double amount) {
        return "$" + FORMAT.format(amount);
    }
}
