mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Removed duplicate messages when achieving level 99 in a skill
This commit is contained in:
parent
de8c3f695b
commit
288902d809
2 changed files with 2 additions and 4 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue