rowan-vr / CustomAdvancements

Custom Advancements is an easy to configure minecraft plugin where you can create your own advancements for your server. Your players can use the easy to use GUI to see the advancements and their progress and how to activate them!
https://www.spigotmc.org/resources/custom-advancements.91167/
GNU General Public License v2.0
34 stars 7 forks source link

WorldEdit/Worldguard error #152

Open samukendal opened 1 year ago

samukendal commented 1 year ago

Hello, i created a survival server with CustomAdvancements, the only thing is it always give me this error (im in 1.18)

[12:37:06] [Server thread/WARN]: [CustomAdvancements] Task #35 for CustomAdvancements v1.2.9 generated an exception java.lang.NullPointerException: Cannot invoke "com.sk89q.worldguard.protection.regions.RegionContainer.get(com.sk89q.worldedit.world.World)" because the return value of "com.sk89q.worldguard.internal.platform.WorldGuardPlatform.getRegionContainer()" is null at me.tippie.customadvancements.advancement.types.RegionStay.lambda$new$1(RegionStay.java:23) ~[?:?] at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1285) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:429) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1237) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1047) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3498-Spigot-b081915-10ba1be] at java.lang.Thread.run(Thread.java:833) [?:?]

rowan-vr commented 10 months ago

It looks like that the region name given in the value of the advancement doesn't exist. I'll make a clearer error message though. Thanks for the report