Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.superpigpork.donoreconomy;
- import java.util.HashMap;
- public class EconManager
- {
- private static Main plugin;
- public EconManager(Main instance)
- {
- plugin = instance;
- }
- public static HashMap<String, Double> Donorbal = new HashMap<>(); //{PlayerName, DonorBalance}
- public static void setDBalance(String player, double amount)
- {
- Donorbal.put(player, amount);
- }
- public static Double getDBalance(String player)
- {
- return Donorbal.get(player);
- }
- public static boolean hasAccount(String player){
- return Donorbal.containsKey(player);
- }
- public static HashMap<String, Double> getBalanceMap()
- {
- return Donorbal;
- }
- public static Main getPlugin()
- {
- return plugin;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement