    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class CommandToggleDownfall extends CommandBase
    006    {
    007        public String getCommandName()
    008        {
    009            return "toggledownfall";
    010        }
    011
    012        public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    013        {
    014            this.reallyToggleDownfall();
    015            notifyAdmins(par1ICommandSender, "commands.downfall.success", new Object[0]);
    016        }
    017
    018        /**
    019         * Toggle rain and enable thundering.
    020         */
    021        protected void reallyToggleDownfall()
    022        {
    023            MinecraftServer.getServer().worldServers[0].toggleRain();
    024            MinecraftServer.getServer().worldServers[0].getWorldInfo().setThundering(true);
    025        }
    026    }