Examples of WriteReachedAchievementCommand


Examples of games.stendhal.server.core.engine.dbcommand.WriteReachedAchievementCommand

  private void logReachingOfAnAchievement(Player player, Achievement achievement) {
    String identifier = achievement.getIdentifier();
    String title = achievement.getTitle();
    Category category = achievement.getCategory();
    String playerName = player.getName();
    DBCommandQueue.get().enqueue(new WriteReachedAchievementCommand(identifiersToIds.get(identifier), title, category, playerName));
    player.addReachedAchievement(achievement.getIdentifier());
    new GameEvent(playerName, "reach-achievement", category.toString(), title, identifier).raise();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.