    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class CommandServerPublishLocal extends CommandBase
    006    {
    007        public String getCommandName()
    008        {
    009            return "publish";
    010        }
    011
    012        public int func_82362_a()
    013        {
    014            return 4;
    015        }
    016
    017        public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    018        {
    019            String var3 = MinecraftServer.getServer().shareToLAN(EnumGameType.SURVIVAL, false);
    020
    021            if (var3 != null)
    022            {
    023                notifyAdmins(par1ICommandSender, "commands.publish.started", new Object[] {var3});
    024            }
    025            else
    026            {
    027                notifyAdmins(par1ICommandSender, "commands.publish.failed", new Object[0]);
    028            }
    029        }
    030    }