Here and in a few other places, use BukkitMCWeatherType.getConcreteEnum(p.getPlayerWeather()) instead of this line. (You'll have to create that file). Don't assume that the enums map based on name, as that prevents us from maintaining backwards compatibility, and because those functions throw better error messages, instead of non-descript IllegalArgumentExceptions (and also allow for us to intercept and translate that conversion in one single place later, if needed.)