Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Commit 17d97ae

Browse files
Andrewtwizmwazin
authored andcommitted
Fix silent score-boxes not adding a score.
1 parent 7a164d7 commit 17d97ae

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/in/twizmwaz/cardinal/module/modules/scorebox

1 file changed

+1
-1
lines changed

src/main/java/in/twizmwaz/cardinal/module/modules/scorebox/Scorebox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public void onPlayerMove(PlayerMoveEvent event) {
7474
new UnlocalizedChatMessage(playerTeam.get().getColor() + event.getPlayer().getName() + ChatColor.GRAY),
7575
new UnlocalizedChatMessage(ChatColor.DARK_AQUA + "{0}" + ChatColor.GRAY, points == 1 ? new LocalizedChatMessage(ChatConstant.UI_ONE_POINT) : new LocalizedChatMessage(ChatConstant.UI_POINTS, points + "" + ChatColor.GRAY)),
7676
new UnlocalizedChatMessage(playerTeam.get().getCompleteName()))));
77-
score.addScore(points);
7877
event.getPlayer().playSound(event.getPlayer().getLocation(), Sound.ENTITY_PLAYER_LEVELUP, 1, 1);
7978
}
79+
score.addScore(points);
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)