FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

give command in console produces error #113

Closed slowriot closed 11 years ago

slowriot commented 11 years ago

The "give" command in console produces "unknown error", although it still succeeds as normal. We've had this issue for a while, it's not due to a recent version, but for completeness we're reporting it here since it's been brought up on our own bug tracker again:

[REMOTE] [localhost.localdomain:49456] Data: give zfleming1 313 1 [SERVER] 2013-02-11 03:00:01 [INFO] An unknown error occurred while attempting to perform this command

14mRh4X0r commented 11 years ago

Next time, a stack trace would be most useful. Here it is:

java.lang.NullPointerException
    at OCommandGive.b(SourceFile:52)
    at OCommandHandler.a(OCommandHandler.java:84)
    at ODedicatedServer.al(SourceFile:281)
    at ODedicatedServer.r(SourceFile:249)
    at OMinecraftServer.q(OMinecraftServer.java:384)
    at OMinecraftServer.run(OMinecraftServer.java:323)
    at OThreadMinecraftServer.run(SourceFile:849)
14mRh4X0r commented 11 years ago

Apparently there's some weird stuff here, it calls for a slight... reimplementation of the ITEM_DROP hook. Only internally though, shouldn't break anything.

14mRh4X0r commented 11 years ago

Closed with fd4441c