Add forum moderation achievements

This commit is contained in:
Alejandro 2019-05-26 23:15:16 +03:00
parent 4df2ef69e5
commit ccca21c171

View File

@ -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;
}
}
}