Advertisement
Guest User

EconManager class

a guest
Feb 8th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package me.superpigpork.donoreconomy;
  2.  
  3. import java.util.HashMap;
  4.  
  5. public class EconManager
  6. {
  7. private static Main plugin;
  8. public EconManager(Main instance)
  9. {
  10. plugin = instance;
  11. }
  12. public static HashMap<String, Double> Donorbal = new HashMap<>(); //{PlayerName, DonorBalance}
  13.  
  14. public static void setDBalance(String player, double amount)
  15. {
  16. Donorbal.put(player, amount);
  17. }
  18.  
  19. public static Double getDBalance(String player)
  20. {
  21. return Donorbal.get(player);
  22. }
  23.  
  24. public static boolean hasAccount(String player){
  25. return Donorbal.containsKey(player);
  26. }
  27.  
  28.  
  29. public static HashMap<String, Double> getBalanceMap()
  30. {
  31. return Donorbal;
  32. }
  33.  
  34. public static Main getPlugin()
  35. {
  36. return plugin;
  37. }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement