mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Add forum moderation achievements
This commit is contained in:
parent
4df2ef69e5
commit
ccca21c171
@ -9,6 +9,7 @@ public class UserActivityEvent extends MessageHandler {
|
|||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
String type = this.packet.readString();
|
String type = this.packet.readString();
|
||||||
String value = this.packet.readString();
|
String value = this.packet.readString();
|
||||||
|
String action = this.packet.readString();
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "Quiz":
|
case "Quiz":
|
||||||
@ -16,5 +17,20 @@ public class UserActivityEvent extends MessageHandler {
|
|||||||
AchievementManager.progressAchievement(this.client.getHabbo(), Emulator.getGameEnvironment().getAchievementManager().getAchievement("SafetyQuizGraduate"));
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user