okx-code / Rankup3

An easy-to-setup and lightweight rankup system with a GUI!
https://www.spigotmc.org/resources/rankup.76964/
GNU General Public License v3.0
47 stars 52 forks source link

java.lang.ArrayIndexOutOfBoundsException: 1 #12

Closed Niketion closed 5 years ago

Niketion commented 5 years ago

[11:51:54] [pool-2-thread-1/WARN]: java.lang.ArrayIndexOutOfBoundsException: 1 [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.requirements.Requirement.setValue(Requirement.java:38) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.requirements.RequirementRegistry.newRequirement(RequirementRegistry.java:19) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.requirements.RequirementRegistry.getRequirements(RequirementRegistry.java:33) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.ranks.Rank.deserialize(Rank.java:36) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.ranks.Rankups.lambda$new$0(Rankups.java:9) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.RankList.(RankList.java:28) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.ranks.Rankups.(Rankups.java:9) [11:51:54] [pool-2-thread-1/WARN]: at sh.okx.rankup.Rankup.refreshRanks(Rankup.java:185) [11:51:54] [pool-2-thread-1/WARN]: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) [11:51:54] [pool-2-thread-1/WARN]: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) [11:51:54] [pool-2-thread-1/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:768) [11:51:54] [pool-2-thread-1/WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:342) [11:51:54] [pool-2-thread-1/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:705) [11:51:54] [pool-2-thread-1/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$startTickloop$0(MinecraftServer.java:592) [11:51:54] [pool-2-thread-1/WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [11:51:54] [pool-2-thread-1/WARN]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [11:51:54] [pool-2-thread-1/WARN]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [11:51:54] [pool-2-thread-1/WARN]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [11:51:54] [pool-2-thread-1/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [11:51:54] [pool-2-thread-1/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [11:51:54] [pool-2-thread-1/WARN]: at java.lang.Thread.run(Thread.java:748) [11:51:54] [pool-2-thread-1/INFO]: [Rankup] Disabling Rankup v3.5.2 [11:51:54] [pool-2-thread-1/ERROR]: [Rankup] Could not finish enabling Rankup

My config rankups.yml:

https://github.com/okx-code/Rankup3/wiki/Requirements

rank1: rank: 'Stone' next: 'Coal' requirements:

okx-code commented 5 years ago
 - 'mob-kills 2000'

You msut specify a mob name here