From cfb2626f5405f723a72b9e1fc154f96d61a9d8a5 Mon Sep 17 00:00:00 2001 From: FiLKoNd Date: Mon, 11 Nov 2024 03:59:09 +0300 Subject: [PATCH] + Event extensions --- .../main/kotlin/com/filkond/paperktlib/paper/ext/Event.kt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 paperktlib-paper/src/main/kotlin/com/filkond/paperktlib/paper/ext/Event.kt diff --git a/paperktlib-paper/src/main/kotlin/com/filkond/paperktlib/paper/ext/Event.kt b/paperktlib-paper/src/main/kotlin/com/filkond/paperktlib/paper/ext/Event.kt new file mode 100644 index 0000000..0fe2955 --- /dev/null +++ b/paperktlib-paper/src/main/kotlin/com/filkond/paperktlib/paper/ext/Event.kt @@ -0,0 +1,7 @@ +package com.filkond.paperktlib.paper.ext + +import org.bukkit.event.Cancellable + +fun Cancellable.cancel() { + isCancelled = true +} \ No newline at end of file