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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user