namespace Minecraft.Server.FourKit.Event.World; using Minecraft.Server.FourKit.Chunk; /// /// Called when a chunk is unloaded. /// public class ChunkUnloadEvent : ChunkEvent, Cancellable { private bool _cancel; internal ChunkUnloadEvent(Chunk chunk) : base(chunk) { _cancel = false; } /// /// Gets the cancellation state of this event. A cancelled event will not /// be executed in the server, but will still pass to other plugins. /// /// true if this event is cancelled. public bool isCancelled() => _cancel; /// /// Sets the cancellation state of this event. A cancelled event will not /// be executed in the server, but will still pass to other plugins. /// /// true if you wish to cancel this event. public void setCancelled(bool cancel) { _cancel = cancel; } }