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

com.skillw.pouvoir.internal.feature.trigger.bukkit.BukkitEventTrigger.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.internal.feature.trigger.bukkit

import com.skillw.pouvoir.api.feature.trigger.BaseTrigger
import org.bukkit.event.Cancellable
import org.bukkit.event.Event

/**
 * @className CustomTrigger
 *
 * @author Glom
 * @date 2023/1/8 19:36 Copyright 2024 Glom.
 */
class BukkitEventTrigger(key: String, val event: Event) : BaseTrigger(key) {
    var isCancelled: Boolean = false
        get() = (event as? Cancellable)?.isCancelled ?: false
        set(value) {
            field = value
            (event as? Cancellable)?.isCancelled = value
        }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy