Skip to content

Commit

Permalink
Cleanup rotations
Browse files Browse the repository at this point in the history
Signed-off-by: Pablete1234 <pabloherrerapalacio@gmail.com>
  • Loading branch information
Pablete1234 committed Dec 26, 2019
1 parent a78727d commit b3cd76f
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 485 deletions.
5 changes: 2 additions & 3 deletions src/main/java/tc/oc/pgm/PGMImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
import tc.oc.pgm.regions.RegionModule;
import tc.oc.pgm.renewable.RenewableModule;
import tc.oc.pgm.restart.RestartManager;
import tc.oc.pgm.rotation.FixedPGMMapOrderManager;
import tc.oc.pgm.rotation.RandomPGMMapOrder;
import tc.oc.pgm.rotation.RotationManager;
import tc.oc.pgm.score.ScoreModule;
import tc.oc.pgm.scoreboard.ScoreboardModule;
import tc.oc.pgm.scoreboard.SidebarModule;
Expand Down Expand Up @@ -237,8 +237,7 @@ public void onEnable() {

if (Config.Rotations.areEnabled()) {
matchManager.setMapOrder(
new FixedPGMMapOrderManager(
matchManager, logger, new File(getDataFolder(), Config.Rotations.getPath())));
new RotationManager(logger, new File(getDataFolder(), Config.Rotations.getPath())));
} else {
matchManager.setMapOrder(new RandomPGMMapOrder(matchManager));
}
Expand Down
Loading

0 comments on commit b3cd76f

Please sign in to comment.