Skip to content

Commit

Permalink
feat: added message for sending game killer in Discord (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagogebrimm authored Apr 30, 2023
1 parent df7dd56 commit 82f2136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ protected void processWinners() {
givePrizes(KILLER, null, Collections.singletonList(killer));
gameManager.setKiller(getConfig(), killer, null);
SoundUtils.playSound(SoundUtils.Type.VICTORY, plugin.getConfig(), killer.toOnlinePlayer());
discordAnnounce("discord_who_won_killer", killer.getName(), killsCount.get(killer));
todayWinners.setKiller(getConfig().getName(), killer.getUniqueId());
}
broadcastKey("who_won_tournament", getWinnerName(firstPlaceWinners),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected void processWinners() {
if (killer != null) {
plugin.getGameManager().setKiller(getConfig(), killer, null);
SoundUtils.playSound(VICTORY, plugin.getConfig(), killer.toOnlinePlayer());
discordAnnounce("discord_who_won_killer", killer.getName(), killsCount.get(killer));
givePrizes(KILLER, null, Collections.singletonList(killer));
}
today.setWinners(gameName, Helper.warriorListToUuidList(winners));
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/language-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ starting_game: "!!broadcast \n&b» Starting game in {0} seconds! Join using /tb
discord_game_starting: "» The countdown to a new game has started! \nJoin the server to participate."
discord_who_won: "» Game over! Winner group is: {0}."
discord_who_won_tournament: "» Game over! Winners are:\n &b1# &f{0}\n &b2# &f{1}\n &b3# &f{2}."
discord_who_won_killer: "» Game over! Killer is: {0} Kills: {1}."
players-ranking:
victories-title: "V"
kills-title: "K"
Expand Down

0 comments on commit 82f2136

Please sign in to comment.