Remove test events

This commit is contained in:
Mathieu Strypsteen 2024-09-16 20:41:45 +02:00
parent 3b6e62a3d1
commit d6d3803025
5 changed files with 0 additions and 65 deletions

View file

@ -10,12 +10,8 @@ import org.bukkit.scoreboard.Team;
import java.util.List; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.OptionalDouble; import java.util.OptionalDouble;
import java.util.Set;
import java.util.stream.Collectors;
import gent.zeus.mc13dtl.MC13DTL; import gent.zeus.mc13dtl.MC13DTL;
import gent.zeus.mc13dtl.events.catalog.TestEvent;
import gent.zeus.mc13dtl.events.catalog.TestEvent2;
public class EventRunner implements Runnable { public class EventRunner implements Runnable {
static List<Event> currentEvents = new ArrayList<>(); static List<Event> currentEvents = new ArrayList<>();
@ -41,8 +37,6 @@ public class EventRunner implements Runnable {
Difficulty difficulty = difficulties.get(i); Difficulty difficulty = difficulties.get(i);
switch ((int) day) { switch ((int) day) {
case 0 -> new SuicideEvent(team, difficulty, getDayScore()); case 0 -> new SuicideEvent(team, difficulty, getDayScore());
case 1 -> new TestEvent(team, difficulty, getDayScore());
case 2 -> new TestEvent2(team, difficulty, getDayScore());
} }
} }
world.getPersistentDataContainer().set(eventKey, PersistentDataType.LONG, day); world.getPersistentDataContainer().set(eventKey, PersistentDataType.LONG, day);

View file

@ -6,10 +6,8 @@ import gent.zeus.mc13dtl.events.Event;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.entity.PlayerDeathEvent; import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.scoreboard.Team; import org.bukkit.scoreboard.Team;
public class SuicideEvent extends Event { public class SuicideEvent extends Event {
// Time left for team member to commit suicide in seconds. // Time left for team member to commit suicide in seconds.
private long timeLeft; private long timeLeft;

View file

@ -1,28 +0,0 @@
package gent.zeus.mc13dtl.events.catalog;
import gent.zeus.mc13dtl.events.Difficulty;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.scoreboard.Team;
import gent.zeus.mc13dtl.events.Event;
public class TestEvent extends Event {
public TestEvent(Team team, Difficulty difficulty, int scoreOnSuccess) {
super(team, difficulty, scoreOnSuccess);
}
@Override
protected String getMessage() {
return "test";
}
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getPlayer() == null) {
return;
}
eventSuccess();
}
}

View file

@ -1,27 +0,0 @@
package gent.zeus.mc13dtl.events.catalog;
import gent.zeus.mc13dtl.events.Difficulty;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.scoreboard.Team;
import gent.zeus.mc13dtl.events.Event;
public class TestEvent2 extends Event {
public TestEvent2(Team team, Difficulty difficulty, int scoreOnSuccess) {
super(team, difficulty, scoreOnSuccess);
}
@Override
protected String getMessage() {
return "Super difficult event!";
}
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getPlayer() == null) {
return;
}
eventSuccess();
}
}

View file

@ -3,8 +3,6 @@ package gent.zeus.mc13dtl.group;
import gent.zeus.mc13dtl.MC13DTL; import gent.zeus.mc13dtl.MC13DTL;
import io.papermc.paper.command.brigadier.BasicCommand; import io.papermc.paper.command.brigadier.BasicCommand;
import io.papermc.paper.command.brigadier.CommandSourceStack; import io.papermc.paper.command.brigadier.CommandSourceStack;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.Team; import org.bukkit.scoreboard.Team;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;