SHARE
TWEET

Untitled

a guest Oct 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void test(Player p) {
  2.  
  3.     // Je veux recuperer si le hasRecord du joueur
  4.  
  5.     hasRecord(new CallBack<HashMap>() {
  6.  
  7.         @Override
  8.         public void onSuccess(HashMap done) {
  9.             boolean hasRecord = done.get("hasRecord");
  10.             if(hasRecord) {
  11.                 main.sql.createRecord(player);
  12.             }
  13.         }
  14.  
  15.         @Override
  16.         public void onFailure(Throwable cause) {
  17.             System.out.println("ERROR: LOADING ASYNC MYSQL DATA");
  18.         }
  19.  
  20.     }, p);
  21.  
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top