Describe the bug
Upon hitting a mob inside of an adminclaim the below error appears.
To Reproduce
Steps to reproduce the behavior:
create adminstrative claims
use latest mcmmo, gp and gpflags
hit hostile mobs
See error
Expected behavior
well i expect the error to not be thrown.
Screenshots or Videos
[17:20:04 ERROR]: Could not pass event McMMOPlayerXpGainEvent to GriefPreventionFlags v5.12.4-SNAPSHOT
java.lang.NullPointerException: Cannot invoke "me.ryanhamshire.GPFlags.Flag.getFlagDefinition()" because "f" is null
at me.ryanhamshire.GPFlags.util.Util.shouldBypass(Util.java:469) ~[GriefPreventionFlags-5.12.4-SNAPSHOT.jar:?]
at me.ryanhamshire.GPFlags.flags.FlagDef_NoMcMMOXP.handleEvent(FlagDef_NoMcMMOXP.java:34) ~[GriefPreventionFlags-5.12.4-SNAPSHOT.jar:?]
at me.ryanhamshire.GPFlags.flags.FlagDef_NoMcMMOXP.onPlayerGainXP(FlagDef_NoMcMMOXP.java:28) ~[GriefPreventionFlags-5.12.4-SNAPSHOT.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1384.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-130]
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 com.gmail.nossr50.util.EventUtils.handleXpGainEvent(EventUtils.java:386) ~[mcMMO.jar:?]
at com.gmail.nossr50.datatypes.player.McMMOPlayer.applyXpGain(McMMOPlayer.java:679) ~[mcMMO.jar:?]
at com.gmail.nossr50.datatypes.player.McMMOPlayer.beginUnsharedXpGain(McMMOPlayer.java:643) ~[mcMMO.jar:?]
at com.gmail.nossr50.datatypes.player.McMMOPlayer.beginXpGain(McMMOPlayer.java:630) ~[mcMMO.jar:?]
at com.gmail.nossr50.runnables.skills.AwardCombatXpTask.run(AwardCombatXpTask.java:48) ~[mcMMO.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-130]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-130]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1492) ~[paper-1.19.2.jar:git-Paper-130]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-130]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1416) ~[paper-1.19.2.jar:git-Paper-130]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[paper-1.19.2.jar:git-Paper-130]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-130]
at java.lang.Thread.run(Unknown Source) ~[?:?]
Describe the bug Upon hitting a mob inside of an adminclaim the below error appears.
To Reproduce Steps to reproduce the behavior:
Expected behavior well i expect the error to not be thrown.
Screenshots or Videos
Configs:
Versions: