mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 17:17:38 +01:00
* Update to latest version of Denizens (0.9.2)
This commit is contained in:
parent
72f115dd97
commit
1e3c2365a3
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user