* Update to latest version of Denizens (0.9.2)

This commit is contained in:
Zino 2013-08-09 21:56:24 +02:00
parent 72f115dd97
commit 1e3c2365a3
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@
<dependency> <dependency>
<groupId>net.aufdemrand</groupId> <groupId>net.aufdemrand</groupId>
<artifactId>denizen</artifactId> <artifactId>denizen</artifactId>
<version>0.8-PRERELEASE</version> <version>0.9.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.milkbowl.vault</groupId> <groupId>net.milkbowl.vault</groupId>

View File

@ -1,17 +1,18 @@
package me.blackvein.quests; package me.blackvein.quests;
import net.aufdemrand.denizen.objects.dPlayer;
import net.aufdemrand.denizen.scripts.ScriptRegistry; import net.aufdemrand.denizen.scripts.ScriptRegistry;
import net.aufdemrand.denizen.scripts.containers.core.TaskScriptContainer; import net.aufdemrand.denizen.scripts.containers.core.TaskScriptContainer;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
public class QuestTaskTrigger { public class QuestTaskTrigger {
public boolean parseQuestTaskTrigger(String theScriptName, Player thePlayer) { public boolean parseQuestTaskTrigger(String theScriptName, Player player) {
if (!ScriptRegistry.containsScript(theScriptName)) { if (!ScriptRegistry.containsScript(theScriptName)) {
return false; return false;
} }
TaskScriptContainer task_script = ScriptRegistry.getScriptContainerAs(theScriptName, TaskScriptContainer.class); TaskScriptContainer task_script = ScriptRegistry.getScriptContainerAs(theScriptName, TaskScriptContainer.class);
task_script.runTaskScript(thePlayer, null, null); task_script.runTaskScript(dPlayer.mirrorBukkitPlayer(player), null, null);
return true; return true;
} }
} }