@Override public void queueSave(final PlayerData playerData) { if (this.playerData.get(playerData.getId()) != null) { this.playerData.replace(playerData.getId(), playerData); return; } this.playerData.put(playerData.getId(), playerData); }
@Override public boolean isQueued(PlayerData object) { return this.playerData.containsKey(object.getId()); }
@Override public void unqueue(PlayerData playerData) { if (this.playerData.containsKey(playerData.getId())) { this.playerData.remove(playerData.getId()); } }