개인 자료란 (JE)

  서버 커뮤니티

Profile 명이 프로답변러

myoung2 ec5127c15aab46a4862df5f068b3e07f

Profile

질문하기 Java

[SOLVED] 플러그인 오류 메시지

2020.10.06 조회 수 116 추천 수 0
이해도 플러그인 
게임버전 (JE) 버킷 

현재 PlayerFillBucketEvent를 이용해서 물을 담으면 ~~한 일이 일어나는걸 만들고 있는데

오류가 납니다.


[09:15:25 ERROR]: Could not pass event PlayerBucketFillEvent to First v1.0-SNAPSHOT

java.lang.NullPointerException: null

        at test.first.First.onPlayerFillBucket(First.java:66) ~[?:?]

        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor5.execute(Unknown Source) ~[?:?]

        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.3.jar:git-Paper-206]

        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.3.jar:git-Paper-206]

        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.3.jar:git-Paper-206]

        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.3.jar:git-Paper-206]

        at org.bukkit.craftbukkit.v1_16_R2.event.CraftEventFactory.getPlayerBucketEvent(CraftEventFactory.java:454) ~[patched_1.16.3.jar:git-Paper-206]

        at org.bukkit.craftbukkit.v1_16_R2.event.CraftEventFactory.callPlayerBucketFillEvent(CraftEventFactory.java:430) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.ItemBucket.a(ItemBucket.java:44) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.ItemStack.a(ItemStack.java:379) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.PlayerInteractManager.a(PlayerInteractManager.java:414) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1522) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:28) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:5) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:1135) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:1128) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:1089) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:1003) ~[patched_1.16.3.jar:git-Paper-206]

        at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.3.jar:git-Paper-206]

        at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]






3개의 댓글

허두
2020.10.06

First.java의 66번째 줄에서 Null 오류가 일어나네요.

코드를 보여주셔야 오류를 해결할 수 있지 않을까요?

명이
2020.10.07
@허두

이미 해결했습니다.

허두
2020.10.07
@명이

다행입니다 :)