bPermissions icon indicating copy to clipboard operation
bPermissions copied to clipboard

Minecraft:give errors

Open ScottWoodward opened this issue 10 years ago • 2 comments

If you attempt to use /minecraft:give then the command executes correctly, but also displays a NPE in the console.

This issue occurs when using bPermssions and Vanish as the only plugins on the server. Being (or targeting someone who is) un-vanished, or removing bPermssions corrects the issue.

NOTE: I fully understand that this issue is likely not related directly to either plugin or bukkit, as all three work in isolation, but it is also the combination of these three that is causing the issue, so I am posting it to both plugin authors and to the bukkit team.

Here's the error it causes in the console.

[14:25:54] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing 'minecraft:give Raemis210 1 1' in org.bukkit.craftbukkit.v1_7_R1.command.VanillaCommandWrapper(give)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:179) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:683) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:952) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
Caused by: java.lang.NullPointerException
    at net.minecraft.server.v1_7_R1.CommandGive.b(SourceFile:68) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.craftbukkit.v1_7_R1.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:60) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:175) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    ... 12 more

ScottWoodward avatar Mar 22 '14 18:03 ScottWoodward

This has nothing to do with bPermissions. Nothing in that stacktrace relates to bPermissions. Remove Vanish and then try.

itsaphel avatar Mar 22 '14 18:03 itsaphel

The issue is only around when both are present. Removing either one or both alleviates the issue. The stack trace also has nothing to do with vanish but it is a combination of both plugins that seems to be causing it.

ScottWoodward avatar Mar 22 '14 19:03 ScottWoodward