Autorank

Autorank

380k Downloads

Error when using placeholder as requirement

Strahilchu opened this issue ยท 0 comments

commented

This is caused by a Quests placeholder that takes a few seconds to load, but AutoRank expects it right away as player joins and throws this error needlessly because a second later the placeholder loads and "data is loaded".

Asking if it can be made to not show or corrected by having the plugin wait a bit for the placeholder?

[21:57:50 WARN]: [Autorank] Plugin Autorank v5.1.6 generated an exception while executing task 43581
java.lang.NumberFormatException: For input string: "Data not loaded"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:668) ~[?:?]
at java.lang.Integer.valueOf(Integer.java:995) ~[?:?]
at me.armar.plugins.autorank.pathbuilder.requirement.PlaceholderapiIntegerRequirement.meetsRequirement(PlaceholderapiIntegerRequirement.java:35) ~[Autorank_5.1.6.jar:?]
at me.armar.plugins.autorank.pathbuilder.requirement.AbstractRequirement.isMet(AbstractRequirement.java:109) ~[Autorank_5.1.6.jar:?]
at me.armar.plugins.autorank.pathbuilder.holders.CompositeRequirement.meetsRequirement(CompositeRequirement.java:179) ~[Autorank_5.1.6.jar:?]
at me.armar.plugins.autorank.pathbuilder.Path.meetsAllRequirements(Path.java:178) ~[Autorank_5.1.6.jar:?]
at me.armar.plugins.autorank.pathbuilder.Path.checkPathProgress(Path.java:73) ~[Autorank_5.1.6.jar:?]
at me.armar.plugins.autorank.playerchecker.PlayerChecker.checkPlayer(PlayerChecker.java:37) ~[Autorank_5.1.6.jar:?]
at me.armar.plugins.autorank.listeners.PlayerJoinListener.lambda$onPlayerJoin$0(PlayerJoinListener.java:41) ~[Autorank_5.1.6.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[petal-1.19.2.jar:git-petal-"cc713c0"]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[petal-1.19.2.jar:git-petal-"cc713c0"]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[petal-1.19.2.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]