    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class CommandServerStop extends CommandBase
    006    {
    007        public String getCommandName()
    008        {
    009            return "stop";
    010        }
    011
    012        /**
    013         * Return the required permission level for this command.
    014         */
    015        public int getRequiredPermissionLevel()
    016        {
    017            return 4;
    018        }
    019
    020        public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    021        {
    022            notifyAdmins(par1ICommandSender, "commands.stop.start", new Object[0]);
    023            MinecraftServer.getServer().initiateShutdown();
    024        }
    025    }