From ccca21c171690c66b305012fb7860f1a4bd3fe9a Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sun, 26 May 2019 23:15:16 +0300 Subject: [PATCH] Add forum moderation achievements --- .../incoming/users/UserActivityEvent.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/com/eu/habbo/messages/incoming/users/UserActivityEvent.java b/src/main/java/com/eu/habbo/messages/incoming/users/UserActivityEvent.java index 74b3030d..42f5c746 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/users/UserActivityEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/users/UserActivityEvent.java @@ -9,6 +9,7 @@ public class UserActivityEvent extends MessageHandler { public void handle() throws Exception { String type = this.packet.readString(); String value = this.packet.readString(); + String action = this.packet.readString(); switch (type) { case "Quiz": @@ -16,5 +17,20 @@ public class UserActivityEvent extends MessageHandler { AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("SafetyQuizGraduate")); } } + + switch (action) { + case "forum.can.read.seen": + AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("SelfModForumCanReadSeen")); + break; + case "forum.can.post.seen": + AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("SelfModForumCanPostSeen")); + break; + case "forum.can.start.thread.seen": + AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("SelfModForumCanPostThrdSeen")); + break; + case "forum.can.moderate.seen": + AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("SelfModForumCanModerateSeen")); + break; + } } } \ No newline at end of file