Skip to content

Commit

Permalink
prog
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldmensch committed Sep 14, 2024
1 parent ee79030 commit 281ac32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/main/java/club/devcord/gamejam/commands/GameCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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("<red> Unknown command."));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/club/devcord/gamejam/level/Level.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public abstract class Level {

private final Team team;

protected Level(Team team) {
public Level(Team team) {
this.team = team;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 281ac32

Please sign in to comment.