Browse Source

fix: compiler error (wrong method call) and force javac compiler usage

Daniel Nägele 3 years ago
parent
commit
5d3ff62a3f

+ 1 - 1
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/timer/GameTimer.java

@@ -64,7 +64,7 @@ public class GameTimer extends Timer {
         }
 
         if (seconds % 10 == 0) {
-            getGame().getScoreboardManager().updateInGameScoreboard();
+            getGame().getScoreboardManager().updateScoreboard();
         }
 
         seconds--;

+ 1 - 0
pom.xml

@@ -143,6 +143,7 @@
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5.1</version>
                 <configuration>
+                    <forceJavacCompilerUse>true</forceJavacCompilerUse>
                     <source>11</source>
                     <target>11</target>
                 </configuration>