File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/main/java/com/github/elic0de/hungergames Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ public void wonGame() {
193193 if (getPhase () instanceof InGamePhase ) {
194194 aliveTeams .stream ().findAny ().ifPresent (team -> {
195195 broadcast (new MineDown (String .format ("%sのチームが勝利しました" , team .getName ())));
196+ team .getEntries ().forEach (s -> broadcast (new MineDown ("&6" + team .getName ())));
196197 title (String .format ("%sの勝利" , team .getName ()), "" );
197198 });
198199 endGame ();
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ public void onWorldLoad(WorldLoadEvent event) {
106106 world .setGameRule (GameRule .ANNOUNCE_ADVANCEMENTS , false );
107107 }
108108
109+
110+ @ EventHandler
111+ private void onLogin (PlayerLoginEvent event ) {
112+ System .out .println (event .getHostname ());
113+ }
109114 @ EventHandler
110115 private void onMove (EntityToggleGlideEvent event ) {
111116 if (event .getEntity () instanceof Player player ) {
You can’t perform that action at this time.
0 commit comments