All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.world.WorldUnloadEvent Maven / Gradle / Ivy

package org.bukkit.event.world;

import org.bukkit.World;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;

/**
 * Called when a World is unloaded
 */
public class WorldUnloadEvent extends WorldEvent implements Cancellable {
  private static final HandlerList handlers = new HandlerList();
  private boolean isCancelled;

  public WorldUnloadEvent(final World world) {
    super(world);
  }

  public static HandlerList getHandlerList() {
    return handlers;
  }

  public boolean isCancelled() {
    return this.isCancelled;
  }

  public void setCancelled(boolean cancel) {
    this.isCancelled = cancel;
  }

  @Override
  public HandlerList getHandlers() {
    return handlers;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy