From 13cf1fac9f557381d9e875afdad79d2c53c530bf Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Sun, 19 Feb 2017 12:11:48 -0800 Subject: [PATCH] v1.0.2 add getPlayer in SpectateTask --- pom.xml | 2 +- .../java/to/us/tf/DeathSpectating/tasks/SpectateTask.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a90566c..9854ac8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ to.us.tf DeathSpectating - 1.0.1 + 1.0.2 1.8 1.8 diff --git a/src/main/java/to/us/tf/DeathSpectating/tasks/SpectateTask.java b/src/main/java/to/us/tf/DeathSpectating/tasks/SpectateTask.java index 74c7986..5e258ce 100644 --- a/src/main/java/to/us/tf/DeathSpectating/tasks/SpectateTask.java +++ b/src/main/java/to/us/tf/DeathSpectating/tasks/SpectateTask.java @@ -32,6 +32,11 @@ public SpectateTask(Player player, long ticks, @Nullable Entity killer, DeathSpe // vector = player.getLocation().subtract(player.getLocation().add(0, 1, 0).toVector()).toVector(); } + public Player getPlayer() + { + return player; + } + public void setTicks(long ticks) { this.ticks = ticks;