Removed duplicate messages when achieving level 99 in a skill
This commit is contained in:
@@ -128,7 +128,7 @@ public final class LevelUp {
|
||||
player.getSkills().incrementPrayerPoints(1);
|
||||
}
|
||||
if (player.getSkills().getStaticLevel(slot) == 99 && !player.isArtificial()) {
|
||||
Repository.sendNews(player.getUsername() + " has just achieved 99 " + Skills.SKILL_NAME[slot]);
|
||||
Repository.sendNews(player.getUsername() + " has just achieved level 99 " + Skills.SKILL_NAME[slot]);
|
||||
Skillcape.trim(player);
|
||||
player.getEmoteManager().unlock(Emotes.SKILLCAPE);
|
||||
}
|
||||
|
||||
@@ -265,9 +265,7 @@ public final class Skills {
|
||||
lifepoints += amount;
|
||||
}
|
||||
staticLevels[slot] = newLevel;
|
||||
if(newLevel == 99 && !player.isArtificial()){
|
||||
Repository.sendNews(entity.asPlayer().getUsername() + " has just achieved level 99 " + SKILL_NAME[slot]);
|
||||
}
|
||||
|
||||
if (entity instanceof Player) {
|
||||
if (updateCombatLevel()) {
|
||||
player.getUpdateMasks().register(new AppearanceFlag(player));
|
||||
|
||||
Reference in New Issue
Block a user