Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
by lvl 50 an error accures and the game do nothing more
Screenshots
If applicable, add screenshots to help explain your problem.
Server and plugin versions (please complete the following information):
OS: [e.g. Windows 10]
Server type (including the version Paper 1.19.2
Villager Defense version:1.2.7
17:31:13
Could not pass event WaveEndEvent to VillagerDefense v1.2.7
Console
17:31:13
java.lang.IllegalArgumentException: Potion Type is not upgradable
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[guava-31.0.1-jre.jar:?]
at org.bukkit.potion.PotionData.(PotionData.java:24) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.GameItems.arrowsWPlus(GameItems.java:2530) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.GameItems.randAmmo(GameItems.java:5722) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.inventories.Inventories.createWeaponShopMenu(Inventories.java:1498) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.Tasks$9.run(Tasks.java:492) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.listeners.ArenaListener.onWaveEnd(ArenaListener.java:305) ~[VillagerDefense-1.2.7.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor698.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-307]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.arenas.Arena.lambda$calibrate$30(Arena.java:2028) ~[VillagerDefense-1.2.7.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-307]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior by lvl 50 an error accures and the game do nothing more
Screenshots If applicable, add screenshots to help explain your problem.
Server and plugin versions (please complete the following information):
17:31:13
Could not pass event WaveEndEvent to VillagerDefense v1.2.7
Console 17:31:13
java.lang.IllegalArgumentException: Potion Type is not upgradable at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[guava-31.0.1-jre.jar:?] at org.bukkit.potion.PotionData.(PotionData.java:24) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.GameItems.arrowsWPlus(GameItems.java:2530) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.GameItems.randAmmo(GameItems.java:5722) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.inventories.Inventories.createWeaponShopMenu(Inventories.java:1498) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.Tasks$9.run(Tasks.java:492) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.listeners.ArenaListener.onWaveEnd(ArenaListener.java:305) ~[VillagerDefense-1.2.7.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor698.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-307]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.arenas.Arena.lambda$calibrate$30(Arena.java:2028) ~[VillagerDefense-1.2.7.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-307]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]
at java.lang.Thread.run(Thread.java:833) ~[?:?]