Package org.bukkit.event.weather

Examples of org.bukkit.event.weather.WeatherChangeEvent


    public void createEvents(MultiverseWorld mvWorld) {
        final World world = mvWorld.getCBWorld();
        //// Weather events
        // weather change
        weatherChangeOffEvent = new WeatherChangeEvent(world, false);
        weatherChangeOnEvent = new WeatherChangeEvent(world, true);
        // thunder change
        thunderChangeOffEvent = new ThunderChangeEvent(world, false);
        thunderChangeOnEvent = new ThunderChangeEvent(world, true);
        //// Player events
        // player chat
View Full Code Here


    }

    @Override
    public void setStorm(boolean hasStorm) {
        // call event
        WeatherChangeEvent event = new WeatherChangeEvent(this, hasStorm);
        if (EventFactory.callEvent(event).isCancelled()) {
            return;
        }

        // change weather
View Full Code Here

TOP

Related Classes of org.bukkit.event.weather.WeatherChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.