diff --git a/pom.xml b/pom.xml index 07e06b4..7707e58 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.artillexstudios AxAFKZone - 1.4.0 + 1.4.1 jar AxAFKZone diff --git a/src/main/java/com/artillexstudios/axafkzone/reward/Reward.java b/src/main/java/com/artillexstudios/axafkzone/reward/Reward.java index f6641a9..b7debd8 100644 --- a/src/main/java/com/artillexstudios/axafkzone/reward/Reward.java +++ b/src/main/java/com/artillexstudios/axafkzone/reward/Reward.java @@ -57,7 +57,7 @@ public String getDisplay() { } public void run(Player player) { - Scheduler.get().runAt(player.getLocation(), scheduledTask -> { + Scheduler.get().run(scheduledTask -> { for (String cmd : commands) { Bukkit.dispatchCommand(Bukkit.getConsoleSender(), cmd.replace("%player%", player.getName())); }