Theguyhere0 / villager-defense-minigame

A Minecraft plugin that adds a fun, customizable minigame where players defend villagers against waves of monsters
GNU General Public License v3.0
7 stars 4 forks source link

Error in console #152

Closed UBSMentis closed 1 year ago

UBSMentis commented 1 year ago

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