package cpw.mods.fml.common.event;

import net.minecraft.server.MinecraftServer;
import cpw.mods.fml.common.LoaderState.ModState;

public class FMLServerStartingEvent extends FMLStateEvent
{

    private MinecraftServer server;

    public FMLServerStartingEvent(Object... data)
    {
        super(data);
        this.server = (MinecraftServer) data[0];
    }
    @Override
    public ModState getModState()
    {
        return ModState.AVAILABLE;
    }

    public MinecraftServer getServer()
    {
        return server;
    }
}

@@ -74,16 +74,92 @@
 Server;%0A
+import net.minecraft.src.CommandHandler;%0Aimport net.minecraft.src.ICommand;%0A
 import c
@@ -599,11 +599,187 @@
 r;%0A    %7D
+%0A%0A    public void registerServerCommand(ICommand command)%0A    %7B%0A        CommandHandler ch = (CommandHandler) getServer().func_71187_D();%0A        ch.func_71560_a(command);%0A    %7D
 %0A%7D%0A

Add in a helper on the server start event for adding commands to the server.