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

Error when using placeholder as requirement #803

Open
Strahilchu opened this issue Sep 29, 2022 · 0 comments
Open

Error when using placeholder as requirement #803

Strahilchu opened this issue Sep 29, 2022 · 0 comments

Comments

@Strahilchu
Copy link

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) ~[?:?]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant