AlexandreArcil / QuestionsTime

Ask questions and gain prize for the winner !
Mozilla Public License 2.0
0 stars 0 forks source link

Fixquestiontime error #9

Open Undeadking176 opened 1 year ago

Undeadking176 commented 1 year ago

im having this issue for some reason is there something wrong with the java file! [05:23:37] [pool-2-thread-13/ERROR] [Sponge]: The Scheduler tried to run the task [QT]FixTimeQuestion owned by Plugin{id=questionstime, name=QuestionsTime, version=1.1.7, description=Ask questions and gain prize for the winner, authors=[Nocturne123], source=./mods/QuestionsTime-1.1.7.jar}, but an error occured. java.lang.IllegalArgumentException: bound must be positiveat java.util.Random.nextInt(Random.java:388) ~[?:1.8.0_352]at fr.nocturne123.questionstime.QuestionTask.run(QuestionTask.java:43) ~[QuestionTask.class:?]at org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:139) ~[Task$Builder.class:1.12.2-2838-7.4.8-RC4141]at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:197) ~[SchedulerBase.class:1.12.2-2838-7.4.8-RC4141]at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_352]at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_352]at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_352]at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_352]at java.lang.Thread.run(Thread.java:750) [?:1.8.0_352]

AlexandreArcil commented 1 year ago

Hello, Can you give the content of config.conf ? I think that the sum of the weight of the questions is <= 0.

Undeadking176 commented 1 year ago

new 5.txt

and the file keeps changing the answers i give to answer="cats" to answer=cats. i dont know y ther are taking the "" away but thats a big no no XD

Undeadking176 commented 1 year ago

you need anything else i gave u the right file its just name diffrent on my desktop