From 1e3c2365a3d682381856d458a8e427adc4e33267 Mon Sep 17 00:00:00 2001 From: Zino Date: Fri, 9 Aug 2013 21:56:24 +0200 Subject: [PATCH] * Update to latest version of Denizens (0.9.2) --- pom.xml | 2 +- src/main/java/me/blackvein/quests/QuestTaskTrigger.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 156632f43..13dc81139 100644 --- a/pom.xml +++ b/pom.xml @@ -53,7 +53,7 @@ net.aufdemrand denizen - 0.8-PRERELEASE + 0.9.2-SNAPSHOT net.milkbowl.vault diff --git a/src/main/java/me/blackvein/quests/QuestTaskTrigger.java b/src/main/java/me/blackvein/quests/QuestTaskTrigger.java index 9f5a1235a..04546af1e 100644 --- a/src/main/java/me/blackvein/quests/QuestTaskTrigger.java +++ b/src/main/java/me/blackvein/quests/QuestTaskTrigger.java @@ -1,17 +1,18 @@ package me.blackvein.quests; +import net.aufdemrand.denizen.objects.dPlayer; import net.aufdemrand.denizen.scripts.ScriptRegistry; import net.aufdemrand.denizen.scripts.containers.core.TaskScriptContainer; import org.bukkit.entity.Player; public class QuestTaskTrigger { - public boolean parseQuestTaskTrigger(String theScriptName, Player thePlayer) { + public boolean parseQuestTaskTrigger(String theScriptName, Player player) { if (!ScriptRegistry.containsScript(theScriptName)) { return false; } TaskScriptContainer task_script = ScriptRegistry.getScriptContainerAs(theScriptName, TaskScriptContainer.class); - task_script.runTaskScript(thePlayer, null, null); + task_script.runTaskScript(dPlayer.mirrorBukkitPlayer(player), null, null); return true; } } \ No newline at end of file