コード例 #1
0
  @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);
  }
コード例 #2
0
 @Override
 public boolean isQueued(PlayerData object) {
   return this.playerData.containsKey(object.getId());
 }
コード例 #3
0
 @Override
 public void unqueue(PlayerData playerData) {
   if (this.playerData.containsKey(playerData.getId())) {
     this.playerData.remove(playerData.getId());
   }
 }