Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Party condition kann only be used with every option #412

Closed
JD1992 opened this issue Sep 13, 2016 · 1 comment
Closed

Party condition kann only be used with every option #412

JD1992 opened this issue Sep 13, 2016 · 1 comment
Labels
Duplicate This issue or pull request already exists.

Comments

@JD1992
Copy link

JD1992 commented Sep 13, 2016

Spigot Version: 1.10.2-R0.1
BetonQuest Version: #185 e47983d2bb 23.06.2016 20:05:57

I tried to use the Party condition, but it always failed. After more than a hour, I managed to work. But it will only work, when I use all of the "optional" options.

Normaly this should work:
hasParty: party 10 hasTag every:hasArmor count:2

But when I do it thia way, I get an error in console, after clicking on the NPC with this condition. So I tested several things, till I get to this Point.

This is working:
hasParty: party 10 hasTag every:hasArmor any:hasHealth count:1

But at the point, when I delet one of the options (every,any,count) the error occurs.

Console log:

[23:31:44] [Craft Scheduler Thread - 65/WARN]: Exception in thread "Craft Scheduler Thread - 65" 
[23:31:44] [Craft Scheduler Thread - 65/WARN]: org.apache.commons.lang.UnhandledException: Plugin BetonQuest v1.9-dev#185 generated an exception while executing task 1678
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
    at pl.betoncraft.betonquest.conditions.PartyCondition.check(PartyCondition.java:96)
    at pl.betoncraft.betonquest.BetonQuest.condition(BetonQuest.java:825)
    at pl.betoncraft.betonquest.conversation.Conversation.selectOption(Conversation.java:182)
    at pl.betoncraft.betonquest.conversation.Conversation.access$700(Conversation.java:56)
    at pl.betoncraft.betonquest.conversation.Conversation$Starter.run(Conversation.java:488)
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71)
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    ... 3 more

@RiledUpCrow
Copy link
Contributor

It has been reported already: #395

@RiledUpCrow RiledUpCrow added the Duplicate This issue or pull request already exists. label Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate This issue or pull request already exists.
Projects
None yet
Development

No branches or pull requests

2 participants