2020-12-27 19:35:49 +01:00
|
|
|
package world.bentobox.bentobox.api.events.island;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import org.bukkit.event.HandlerList;
|
2021-09-18 17:15:15 +02:00
|
|
|
import org.eclipse.jdt.annotation.NonNull;
|
2022-01-22 22:14:57 +01:00
|
|
|
|
2020-12-27 19:35:49 +01:00
|
|
|
import world.bentobox.bentobox.api.events.IslandBaseEvent;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Fired when attempting to make a new island.
|
|
|
|
* May be cancelled. No island object exists at this point.
|
|
|
|
* @since 1.15.1
|
|
|
|
*/
|
|
|
|
public class IslandPreCreateEvent extends IslandBaseEvent {
|
|
|
|
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
|
|
|
|
@Override
|
2021-09-18 17:15:15 +02:00
|
|
|
public @NonNull HandlerList getHandlers() {
|
2020-12-27 19:35:49 +01:00
|
|
|
return getHandlerList();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static HandlerList getHandlerList() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
IslandPreCreateEvent(UUID player) {
|
|
|
|
// Final variables have to be declared in the constructor
|
|
|
|
super(null, player, false, null);
|
|
|
|
}
|
|
|
|
}
|