SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public boolean verifAchat(Player player, String item, String value) {
  2.         if(!Database.getData().isRegisteredMultiple("Achat", "UUID", player.getUniqueId().toString(), "item", item, "value", value)) {
  3.             return false;
  4.         } else {
  5.             return true;
  6.         }
  7.     }
  8.  
  9.     public Map<String, String> getAchats(Player player) {
  10.         Map<String, String> achats = Database.getData().getInfo("Achat", "UUID", player.getUniqueId().toString());
  11.         return achats;
  12.     }
  13.  
  14.     public void addAchat(Player player, String item, String value) {
  15.         List<String> values = new ArrayList<>();
  16.         values.add("Joueur>" + player.getName());
  17.         values.add("UUID>" + player.getUniqueId().toString());
  18.         values.add("item>" + item);
  19.         values.add("value>" + value);
  20.         Database.getData().register("Achat", values);
  21.     }
  22.    
  23. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top