2
0
RedstoneFuture 1 жил өмнө
parent
commit
322534c405

+ 6 - 0
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/Game.java

@@ -180,6 +180,12 @@ public class Game {
         scoreboardManager.createScoreboard();
         scoreboardManager.createScoreboard();
     }
     }
 
 
+    /**
+     * This method performs the final preparations for the game start.
+     * <p>
+     * It is necessary that the arena - even in the case of a map vote - is
+     * now already defined.
+     */
     public void finalGamePreparations() {
     public void finalGamePreparations() {
         if (this.arena == null) {
         if (this.arena == null) {
             throw new IllegalStateException("The arena is not yet set");
             throw new IllegalStateException("The arena is not yet set");

+ 1 - 1
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/misc/ScoreboardManager.java

@@ -73,7 +73,7 @@ public class ScoreboardManager {
         team2 = game.getTeam2();
         team2 = game.getTeam2();
 
 
         if (game.getArena() == null) {
         if (game.getArena() == null) {
-            // using of placeholders until the area is not set
+            // using of placeholders until the arena is not set
             setArenaDisplayName("?");
             setArenaDisplayName("?");
             setArenaGameDuration("0");
             setArenaGameDuration("0");
         } else {
         } else {

+ 4 - 0
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/timer/LobbyTimer.java

@@ -105,6 +105,10 @@ public class LobbyTimer extends Timer implements Runnable {
         }
         }
     }
     }
 
 
+    /**
+     * This method executes the game start. In addition, the participants
+     * are informed about the start.
+     */
     public void executeGameStart() {
     public void executeGameStart() {
         broadcast(Messages.getMessage(true, Messages.MessageEnum.LOBBY_GAME_STARTS));
         broadcast(Messages.getMessage(true, Messages.MessageEnum.LOBBY_GAME_STARTS));
         playPling();
         playPling();