Advertisement
ExpDev

JSONPoints

May 7th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. package me.expdev.gkitpvp.persist.json;
  2.  
  3. import me.expdev.gkitpvp.persist.MemoryPoints;
  4.  
  5. /*
  6.  * Project created by ExpDev
  7.  */
  8.  
  9. public class JSONPoints extends MemoryPoints {
  10.  
  11.     private JSONSpawn jsonSpawn;
  12.     private JSONRandomPoints jsonRandomPoints;
  13.  
  14.     public JSONPoints() {
  15.         this.jsonSpawn = new JSONSpawn();
  16.         this.jsonRandomPoints = new JSONRandomPoints();
  17.     }
  18.  
  19.     // LOADING
  20.     @Override
  21.     public void loadAll() {
  22.         jsonSpawn.load();
  23.         jsonRandomPoints.load();
  24.     }
  25.  
  26.     // SAVING
  27.     @Override
  28.     public void forceSaveAll() {
  29.         jsonSpawn.forceSave();
  30.         jsonRandomPoints.forceSave();
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement