diff --git a/src/main/java/club/devcord/gamejam/commands/GameCommand.java b/src/main/java/club/devcord/gamejam/commands/GameCommand.java index a7ea06f..e1e3715 100644 --- a/src/main/java/club/devcord/gamejam/commands/GameCommand.java +++ b/src/main/java/club/devcord/gamejam/commands/GameCommand.java @@ -2,6 +2,8 @@ import club.devcord.gamejam.Nigulpyggub; import club.devcord.gamejam.Team; +import club.devcord.gamejam.level.Level; +import club.devcord.gamejam.level.poempel.PoempelLevel; import club.devcord.gamejam.world.WorldDuplicator; import io.papermc.paper.configuration.type.fallback.FallbackValue; import net.kyori.adventure.text.minimessage.MiniMessage; @@ -40,9 +42,10 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command case "start" -> { for (Team team : plugin.teams()) { team.players().forEach(teamPlayer -> teamPlayer.setGameMode(GameMode.ADVENTURE)); - } - + PoempelLevel poempelLevel = new PoempelLevel(team, plugin); + poempelLevel.start(); + } } default -> player.sendMessage(MiniMessage.miniMessage().deserialize(" Unknown command.")); diff --git a/src/main/java/club/devcord/gamejam/level/Level.java b/src/main/java/club/devcord/gamejam/level/Level.java index 740d4ae..e5ee62c 100644 --- a/src/main/java/club/devcord/gamejam/level/Level.java +++ b/src/main/java/club/devcord/gamejam/level/Level.java @@ -6,7 +6,7 @@ public abstract class Level { private final Team team; - protected Level(Team team) { + public Level(Team team) { this.team = team; } diff --git a/src/main/java/club/devcord/gamejam/level/poempel/PoempelLevel.java b/src/main/java/club/devcord/gamejam/level/poempel/PoempelLevel.java index 19883fa..b52d05e 100644 --- a/src/main/java/club/devcord/gamejam/level/poempel/PoempelLevel.java +++ b/src/main/java/club/devcord/gamejam/level/poempel/PoempelLevel.java @@ -14,7 +14,7 @@ public class PoempelLevel extends Level { private final MoveListener moveListener = new MoveListener(); private final Nigulpyggub plugin; - protected PoempelLevel(Team team, Nigulpyggub plugin) { + public PoempelLevel(Team team, Nigulpyggub plugin) { super(team); this.plugin = plugin; }