protected void actionPerformed(GuiButton par1GuiButton)
    {
        if (par1GuiButton.id == 102)
        {
            mc.displayGuiScreen(field_74092_a);
        }
        else if (par1GuiButton.id == 104)
        {
            if (field_74089_d.equals("survival"))
            {
                field_74089_d = "creative";
            }
            else if (field_74089_d.equals("creative"))
            {
                field_74089_d = "adventure";
            }
            else
            {
                field_74089_d = "survival";
            }

            func_74088_g();
        }
        else if (par1GuiButton.id == 103)
        {
            field_74093_m = !field_74093_m;
            func_74088_g();
        }
        else if (par1GuiButton.id == 101)
        {
            mc.displayGuiScreen(null);
            String s = mc.func_71401_C().func_71206_a(EnumGameType.func_77142_a(field_74089_d), field_74093_m);
            String s1 = "";

            if (s != null)
            {
                s1 = mc.field_71439_g.func_70004_a("commands.publish.started", new Object[]
                        {
                            s
                        });
            }
            else
            {
                s1 = mc.field_71439_g.func_70004_a("commands.publish.failed", new Object[0]);
            }

            mc.ingameGUI.func_73827_b().func_73765_a(s1);
        }
    }