Skip to content

Commit

Permalink
Changed uses of GameStateTimer constructor to match the new one (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKaVu committed May 24, 2023
1 parent c9211e6 commit 721bce7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/dev/kavu/gameapi/GameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class GameManager {

private final GameType gameType;

private final GameStateTimer gameStateTimer = new GameStateTimer();
private final GameStateTimer gameStateTimer;

private final HashSet<UUID> playersInGame = new HashSet<>();

Expand All @@ -35,6 +35,7 @@ public GameManager(Plugin plugin, GameType gameType) {
}
this.plugin = plugin;
this.gameType = gameType;
gameStateTimer = new GameStateTimer(plugin);
mapManager = new MapManager(plugin.getDataFolder());
}

Expand All @@ -50,6 +51,7 @@ public GameManager(Plugin plugin, GameType gameType, MapManager mapManager) {
}
this.plugin = plugin;
this.gameType = gameType;
gameStateTimer = new GameStateTimer(plugin);
this.mapManager = mapManager;
}

Expand All @@ -65,6 +67,7 @@ public GameManager(Plugin plugin, GameType gameType, Collection<? extends Player
}
this.plugin = plugin;
this.gameType = gameType;
gameStateTimer = new GameStateTimer(plugin);
mapManager = new MapManager(plugin.getDataFolder());
for(Player p : playersInGame){
this.playersInGame.add(p.getUniqueId());
Expand All @@ -86,6 +89,7 @@ public GameManager(Plugin plugin, GameType gameType, MapManager mapManager, Coll
}
this.plugin = plugin;
this.gameType = gameType;
gameStateTimer = new GameStateTimer(plugin);
this.mapManager = mapManager;
for(Player p : playersInGame){
this.playersInGame.add(p.getUniqueId());
Expand Down

0 comments on commit 721bce7

Please sign in to comment.