    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 void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    013        {
    014            String var3 = MinecraftServer.getServer().shareToLAN(EnumGameType.SURVIVAL, false);
    015
    016            if (var3 != null)
    017            {
    018                notifyAdmins(par1ICommandSender, "commands.publish.started", new Object[] {var3});
    019            }
    020            else
    021            {
    022                notifyAdmins(par1ICommandSender, "commands.publish.failed", new Object[0]);
    023            }
    024        }
    025    }