65 if (emote.getConfig() != -1) {
66 int flag = emote.activated(player) ? 0 : 1;
67 player.send(
new SendConfig(emote.getConfig(), flag));
85 if (skillcape !=
null) {
94 return player.emoteUnlockable.contains(emote);
97 public static boolean containsAll(
Player player, EmoteUnlockable... emotes) {
98 for (EmoteUnlockable emote : emotes) {
99 if (!contains(player, emote)) {
106 public static EmoteUnlockable selectRandom(Player player, EmoteUnlockable... emotes) {
107 List<EmoteUnlockable> selected =
new ArrayList<>(emotes.length);
108 for (EmoteUnlockable emote : emotes) {
109 if (!contains(player, emote)) {
113 return selected.isEmpty() ? null : Utility.randomElement(selected);
125 if (!player.emoteUnlockable.contains(emote)) {
126 player.emoteUnlockable.add(emote);
140 if (!player.emoteUnlockable.contains(e)) {
141 player.emoteUnlockable.add(e);
145 player.send(
new SendMessage(
"You have successfully unlocked all the emotes."));
static void unlock(Player player, EmoteUnlockable emote)
static void updateSkillcape(Player player)
static void unlockAll(Player player)
static void refresh(Player player)