CitizensDev/Citizens — Issue #632: Nobody can accept a quest !
Author: Nezaria
Created: 2012-01-16 16:35:05+00:00
State: open

Hi,
here is my problem, when I click on a NPC quester to having a quest, nothing happens, except that in the LanchServer.command:

16:24:50 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:250)
at net.citizensnpcs.utils.MessageUtils.getRandomMessage(MessageUtils.java:144)
at net.citizensnpcs.utils.MessageUtils.getText(MessageUtils.java:60)
at net.citizensnpcs.listeners.EntityListen.onEntityTarget(EntityListen.java:93)
at org.bukkit.plugin.java.JavaPluginLoader$69.execute(JavaPluginLoader.java:746)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.citizensnpcs.listeners.PlayerListen.onPlayerInteractEntity(PlayerListen.java:84)
at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.java:342)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:903)
at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
16:25:02 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:250)
at net.citizensnpcs.utils.MessageUtils.getRandomMessage(MessageUtils.java:144)
at net.citizensnpcs.utils.MessageUtils.getText(MessageUtils.java:60)
at net.citizensnpcs.listeners.EntityListen.onEntityTarget(EntityListen.java:93)
at org.bukkit.plugin.java.JavaPluginLoader$69.execute(JavaPluginLoader.java:746)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.citizensnpcs.listeners.PlayerListen.onPlayerInteractEntity(PlayerListen.java:84)
at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.java:342)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:903)
at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

I have the last Recommended Build: 1.0.1-R1 and the last version of citizens.
Also, my quest file seems OK ...

Can you help me ?
Thank you !

Sorry for my bad English...