    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class CommandServerSaveOn extends CommandBase
    006    {
    007        public String getCommandName()
    008        {
    009            return "save-on";
    010        }
    011
    012        public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    013        {
    014            MinecraftServer var3 = MinecraftServer.getServer();
    015
    016            for (int var4 = 0; var4 < var3.worldServers.length; ++var4)
    017            {
    018                if (var3.worldServers[var4] != null)
    019                {
    020                    WorldServer var5 = var3.worldServers[var4];
    021                    var5.canNotSave = false;
    022                }
    023            }
    024
    025            notifyAdmins(par1ICommandSender, "commands.save.enabled", new Object[0]);
    026        }
    027    }