To Reproduce
Steps to reproduce the behavior:
its Random ingame
Server and plugin versions (please complete the following information):
OS: [e.g. Windows 10]
Server type Paper 1.19.2
Villager Defense version: 1.2.7
01:03:43
[VillagerDefense]: Task #7561998 for VillagerDefense v1.2.7 generated an exception
Console
01:03:43
java.lang.NullPointerException: null
at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?]
at me.theguyhere.villagerdefense.plugin.game.models.Mobs.setMinion(Mobs.java:58) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.game.models.Mobs.setGhast(Mobs.java:1127) ~[VillagerDefense-1.2.7.jar:?]
at me.theguyhere.villagerdefense.plugin.listeners.ArenaListener.lambda$spawnMonsters$38(ArenaListener.java:796) ~[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 The Error comes Randomly
To Reproduce Steps to reproduce the behavior: its Random ingame
Server and plugin versions (please complete the following information):
01:03:43
[VillagerDefense]: Task #7561998 for VillagerDefense v1.2.7 generated an exception
Console 01:03:43
java.lang.NullPointerException: null at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] at me.theguyhere.villagerdefense.plugin.game.models.Mobs.setMinion(Mobs.java:58) ~[VillagerDefense-1.2.7.jar:?] at me.theguyhere.villagerdefense.plugin.game.models.Mobs.setGhast(Mobs.java:1127) ~[VillagerDefense-1.2.7.jar:?] at me.theguyhere.villagerdefense.plugin.listeners.ArenaListener.lambda$spawnMonsters$38(ArenaListener.java:796) ~[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) ~[?:?]