GranitePowered/Granite — pull request #96 by Hidendra (2014-12-22 16:13:10+00:00)
Title: Add DedicatedServer to MinecraftUtils/composites so that console commands work

Currently the server seems to crash with this when using a console command:

[12:07:44] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NullPointerException
at org.granitepowered.granite.utils.MinecraftUtils.wrap(MinecraftUtils.java:81) ~[classes/:?]
at org.granitepowered.granite.bytecode.classes.CommandHandlerClass$1.handle(CommandHandlerClass.java:55) ~[classes/:?]
at org.granitepowered.granite.bytecode.BytecodeClass$ProxyHandler.preHandle(BytecodeClass.java:362) ~[classes/:?]
at ab.a(SourceFile) ~[graniteClasses570668301615902894/:?]
at pp.aN(SourceFile:332) ~[graniteClasses570668301615902894/:?]
at pp.A(SourceFile:300) ~[graniteClasses570668301615902894/:?]
at net.minecraft.server.MinecraftServer.z(SourceFile:532) ~[graniteClasses570668301615902894/:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:448) [graniteClasses570668301615902894/:?]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_67]

Adding `DedicatedServer` to the composites field seems to make commands work normally:

help
[12:09:07] [Server thread/INFO]: --- Showing help page 1 of 9 (/help ) ---
[12:09:07] [Server thread/INFO]: /achievement [player]
[12:09:07] [Server thread/INFO]: /ban [reason ...]
[12:09:07] [Server thread/INFO]: /ban-ip [reason ...]
[12:09:07] [Server thread/INFO]: /banlist [ips|players]
[...]