Remove test events
This commit is contained in:
parent
3b6e62a3d1
commit
d6d3803025
5 changed files with 0 additions and 65 deletions
|
@ -10,12 +10,8 @@ import org.bukkit.scoreboard.Team;
|
|||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.OptionalDouble;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import gent.zeus.mc13dtl.MC13DTL;
|
||||
import gent.zeus.mc13dtl.events.catalog.TestEvent;
|
||||
import gent.zeus.mc13dtl.events.catalog.TestEvent2;
|
||||
|
||||
public class EventRunner implements Runnable {
|
||||
static List<Event> currentEvents = new ArrayList<>();
|
||||
|
@ -41,8 +37,6 @@ public class EventRunner implements Runnable {
|
|||
Difficulty difficulty = difficulties.get(i);
|
||||
switch ((int) day) {
|
||||
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);
|
||||
|
|
|
@ -6,10 +6,8 @@ import gent.zeus.mc13dtl.events.Event;
|
|||
import net.kyori.adventure.text.Component;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||
import org.bukkit.event.player.PlayerInteractEvent;
|
||||
import org.bukkit.scoreboard.Team;
|
||||
|
||||
|
||||
public class SuicideEvent extends Event {
|
||||
// Time left for team member to commit suicide in seconds.
|
||||
private long timeLeft;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -3,8 +3,6 @@ package gent.zeus.mc13dtl.group;
|
|||
import gent.zeus.mc13dtl.MC13DTL;
|
||||
import io.papermc.paper.command.brigadier.BasicCommand;
|
||||
import io.papermc.paper.command.brigadier.CommandSourceStack;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scoreboard.Team;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
|
Loading…
Reference in a new issue