Skip to content

Commit

Permalink
API updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Jul 10, 2024
1 parent 7e9e729 commit 542fb90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.battleplugins.arena.ArenaPlayer;
import org.battleplugins.arena.event.action.EventAction;
import org.battleplugins.arena.resolver.Resolvable;
import org.battleplugins.arena.spleef.ArenaSpleef;
import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataType;
Expand All @@ -16,7 +17,7 @@ public GiveShovelAction(Map<String, String> params, String... requiredKeys) {
}

@Override
public void call(ArenaPlayer arenaPlayer) {
public void call(ArenaPlayer arenaPlayer, Resolvable resolvable) {
ItemStack shovel = ArenaSpleef.getInstance().getMainConfig().getShovel(this.get(SHOVEL_KEY));
if (shovel == null) {
ArenaSpleef.getInstance().getSLF4JLogger().warn("Invalid shovel " + this.get(SHOVEL_KEY) + ". Not giving shovel to player.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.battleplugins.arena.ArenaPlayer;
import org.battleplugins.arena.competition.Competition;
import org.battleplugins.arena.event.action.EventAction;
import org.battleplugins.arena.resolver.Resolvable;
import org.battleplugins.arena.spleef.arena.SpleefCompetition;

import java.util.Map;
Expand All @@ -14,11 +15,11 @@ public PasteLayersAction(Map<String, String> params) {
}

@Override
public void call(ArenaPlayer arenaPlayer) {
public void call(ArenaPlayer arenaPlayer, Resolvable resolvable) {
}

@Override
public void postProcess(Arena arena, Competition<?> competition) {
public void postProcess(Arena arena, Competition<?> competition, Resolvable resolvable) {
if (!(competition instanceof SpleefCompetition spleefCompetition)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.battleplugins.arena.spleef.editor;

import io.papermc.paper.math.Position;
import org.battleplugins.arena.BattleArena;
import org.battleplugins.arena.competition.map.options.Bounds;
import org.battleplugins.arena.config.ParseException;
Expand All @@ -10,8 +9,8 @@
import org.battleplugins.arena.editor.stage.TextInputStage;
import org.battleplugins.arena.editor.type.MapOption;
import org.battleplugins.arena.messages.Messages;
import org.battleplugins.arena.spleef.arena.SpleefMap;
import org.battleplugins.arena.spleef.SpleefMessages;
import org.battleplugins.arena.spleef.arena.SpleefMap;
import org.bukkit.Bukkit;

import java.io.IOException;
Expand Down

0 comments on commit 542fb90

Please sign in to comment.