Advertisement
Guest User

EconomyService

a guest
Jul 29th, 2015
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package com.sosoh.essentials.services;
  2.  
  3. import org.spongepowered.api.entity.player.Player;
  4.  
  5. public interface EconomyService {
  6.  
  7. public static EconomyService instance = new EconomyService(); /*Description Resource Path Location Type
  8. Cannot instantiate the type EconomyService EconomyService.java /Essentials/src/api/java/com/sosoh/essentials/services line 7 Java Problem*/
  9.  
  10.  
  11. public static EconomyService geInstance(){
  12. return instance;
  13. }
  14.  
  15. public int getBalance(Player player);
  16. public void setBalance(Player player, int amount);
  17. public void addMoney(Player player, int amount);
  18. public boolean removeMoney(Player player, int amount);
  19. public boolean payPlayerPlayer(Player sender, Player receiver, int amount);
  20. public void setDevise(String name, char symbol);
  21. public String getName();
  22. public char getSymbol();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement