    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 int func_82362_a()
    013        {
    014            return 4;
    015        }
    016
    017        public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    018        {
    019            MinecraftServer var3 = MinecraftServer.getServer();
    020
    021            for (int var4 = 0; var4 < var3.worldServers.length; ++var4)
    022            {
    023                if (var3.worldServers[var4] != null)
    024                {
    025                    WorldServer var5 = var3.worldServers[var4];
    026                    var5.canNotSave = false;
    027                }
    028            }
    029
    030            notifyAdmins(par1ICommandSender, "commands.save.enabled", new Object[0]);
    031        }
    032    }