Update flag capture flow to notify players visually

Added a title notification for players when a team can capture the flag, improving communication during gameplay.
This commit is contained in:
Teriuihi 2025-02-15 04:10:52 +01:00
parent c02bda6ea7
commit 4f0a4eff6f
2 changed files with 6 additions and 3 deletions

View File

@ -144,7 +144,10 @@ public class Flag implements Runnable {
} else {
winningTeam = optionalTeam.get();
spawnFlag(winningTeam.getFlagMaterial());
//TODO stop capture and let ppl know they can now capture the flag
updateDisplay();
Title title = Title.title(MiniMessage.miniMessage().deserialize("Team <team> can capture the flag",
Placeholder.component("team", winningTeam.getName())), Component.empty());
Bukkit.getOnlinePlayers().forEach(player -> player.showTitle(title));
}
}

View File

@ -1,3 +1,3 @@
#Sat Feb 15 04:06:48 CET 2025
buildNumber=54
#Sat Feb 15 04:08:38 CET 2025
buildNumber=55
version=0.1