Skip to content

Commit

Permalink
Added random win and lose messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BomBardyGamer committed Dec 10, 2023
1 parent 4e94ef6 commit 1b3d609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

dependencies {
implementation("dev.emortal.minestom:game-sdk:3e4a79a")
implementation("dev.emortal.minestom:game-sdk:7b8e6b6")

implementation("dev.emortal:rayfast:e6ebf1f")
implementation("com.github.emortaldev:Particable:f7212f39fb")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import dev.emortal.minestom.blocksumo.team.TeamColor;
import dev.emortal.minestom.gamesdk.config.GameCreationInfo;
import dev.emortal.minestom.gamesdk.game.Game;
import dev.emortal.minestom.gamesdk.util.GameWinLoseMessages;
import net.kyori.adventure.key.Key;
import net.kyori.adventure.sound.Sound;
import net.kyori.adventure.text.Component;
Expand Down Expand Up @@ -186,12 +187,12 @@ public void victory(@NotNull Set<Player> winners) {

Title victoryTitle = Title.title(
MiniMessage.miniMessage().deserialize("<gradient:#ffc570:gold><bold>VICTORY!</bold></gradient>"),
Component.empty(),
Component.text(GameWinLoseMessages.VICTORY.random()),
Title.Times.times(Duration.ZERO, Duration.ofSeconds(2), Duration.ofSeconds(4))
);
Title defeatTitle = Title.title(
MiniMessage.miniMessage().deserialize("<gradient:#ff474e:#ff0d0d><bold>DEFEAT!</bold></gradient>"),
Component.empty(),
Component.text(GameWinLoseMessages.DEFEAT.random()),
Title.Times.times(Duration.ZERO, Duration.ofSeconds(2), Duration.ofSeconds(4))
);

Expand Down

0 comments on commit 1b3d609

Please sign in to comment.