Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.expdev.gkitpvp.persist;
- import me.expdev.gkitpvp.GLocation;
- import me.expdev.gkitpvp.Points;
- import java.util.Map;
- import java.util.concurrent.ConcurrentSkipListMap;
- /**
- * Project created by ExpDev
- */
- public abstract class MemoryPoints extends Points {
- public GLocation spawn = null;
- public Map<String, GLocation> points = new ConcurrentSkipListMap<String, GLocation>(String.CASE_INSENSITIVE_ORDER);
- public GLocation getSpawn() {
- return spawn;
- }
- public void setSpawn(GLocation spawn) {
- this.spawn = spawn;
- }
- public GLocation getPoint(String id) {
- return points.get(id);
- }
- public void addPoint(String id, GLocation where) {
- points.put(id, where);
- }
- public void removePoint(String id) {
- points.remove(id);
- }
- // LOAD
- @Override
- public abstract void loadAll();
- // SAVE
- @Override
- public abstract void forceSaveAll();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement