Skip to content

Commit

Permalink
Fix competition creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Aug 29, 2024
1 parent a896947 commit 952843a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public class GiveShovelAction extends EventAction {
private static final String SHOVEL_KEY = "shovel";

public GiveShovelAction(Map<String, String> params, String... requiredKeys) {
super(params, requiredKeys);
public GiveShovelAction(Map<String, String> params) {
super(params, SHOVEL_KEY);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.papermc.paper.math.Position;
import org.battleplugins.arena.Arena;
import org.battleplugins.arena.competition.Competition;
import org.battleplugins.arena.competition.LiveCompetition;
import org.battleplugins.arena.competition.map.LiveCompetitionMap;
import org.battleplugins.arena.competition.map.MapFactory;
import org.battleplugins.arena.competition.map.MapType;
Expand Down Expand Up @@ -53,7 +54,7 @@ public void postProcess() {
}

@Override
public Competition<?> createCompetition(Arena arena) {
public LiveCompetition<SpleefCompetition> createCompetition(Arena arena) {
if (!(arena instanceof SpleefArena spleefArena)) {
throw new IllegalArgumentException("Arena must be a spleef arena!");
}
Expand Down

0 comments on commit 952843a

Please sign in to comment.