My minecraft server crashes with this report with mod .
[15:50:11] [Server thread/INFO]: Starting minecraft server version 1.7.10
[15:50:13] [Server thread/INFO]: Loading properties
[15:50:13] [Server thread/INFO]: Default game type: SURVIVAL
[15:50:13] [Server thread/INFO]: Generating keypair
[15:50:13] [Server thread/INFO]: Starting Minecraft server on 192.99.6.188:27316
[15:50:13] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[15:50:13] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[15:50:13] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[15:50:13] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[15:50:14] [Server thread/INFO]: Preparing level "map"
[15:50:14] [Server thread/INFO]: Preparing start region for level 0
[15:50:14] [Server thread/WARN]: Skipping Entity with id EntityCandyMan
[15:50:15] [Server thread/INFO]: Done (1.011s)! For help, type "help" or "?"
[15:50:24] [Server thread/INFO]: Player511[/24.158.51.152:51433] logged in with entity id 452 at (-12.5, 68.0, 64.5)
[15:50:24] [Server thread/INFO]: Player511 joined the game
[15:50:24] [Server thread/INFO]: Player511 has just earned the achievement [Welcome To Epic Proportions]
[15:50:24] [Server thread/WARN]: Failed to handle packet for /24.158.51.152:51433
java.lang.NullPointerException
at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:101) ~[FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) ~[ej.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) [nc.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) [lt.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?]
[15:50:24] [Server thread/INFO]: Player511 lost connection: TextComponent{text='Internal server error', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
[15:50:24] [Server thread/INFO]: Player511 left the game
2
try setting online-mode in server.properties to true
I got this fixed now it was this being in my main Mod file that caused the crash, I moved it to ClientProxy and now it works.
FMLCommonHandler.instance().bus().register(new OnJoinEvent());
