BukkitEventApplication

An implementation of ModelEventApplication for Bukkit plugins.

This record holds a weak reference to a Bukkit plugin to prevent memory leaks and checks if the plugin is enabled.

Since

2.0.0

Parameters

name

the name of the plugin

pluginRef

a weak reference to the plugin instance

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isEnabled(): Boolean
Link copied to clipboard
@NotNull
open fun of(@NotNull plugin: @NotNull Plugin): @NotNull BukkitEventApplication
Creates a new BukkitEventApplication for the given plugin.
Link copied to clipboard
abstract fun toString(): String