# KSpigot

abstract class KSpigot : JavaPlugin
Content copied to clipboard

This is the main instance of KSpigot.

This class replaces (and inherits from) the JavaPlugin class. Your main plugin class should inherit from this abstract class.

Instead of overriding onLoad(), onEnable() and onDisable()override:

- load() (called first)

- startup() (called second)

- shutdown() (called in the "end")

## Constructors

KSpigot
Link copied to clipboard
fun KSpigot()
Content copied to clipboard

## Functions

equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Content copied to clipboard
getClassLoader
Link copied to clipboard
@NotNull()
fun getClassLoader(): ClassLoader
Content copied to clipboard
getCommand
Link copied to clipboard
@Nullable()
open fun getCommand(@NotNull() p0: String): PluginCommand?
Content copied to clipboard
getConfig
Link copied to clipboard
@NotNull()
open override fun getConfig(): FileConfiguration
Content copied to clipboard
getDataFolder
Link copied to clipboard
@NotNull()
override fun getDataFolder(): File
Content copied to clipboard
getDefaultWorldGenerator
Link copied to clipboard
@Nullable()
open override fun getDefaultWorldGenerator(@NotNull() p0: String, @Nullable() p1: String?): ChunkGenerator?
Content copied to clipboard
getDescription
Link copied to clipboard
@NotNull()
override fun getDescription(): PluginDescriptionFile
Content copied to clipboard
getFile
Link copied to clipboard
@NotNull()
open fun getFile(): File
Content copied to clipboard
getLogger
Link copied to clipboard
@NotNull()
open override fun getLogger(): Logger
Content copied to clipboard
getName
Link copied to clipboard
@NotNull()
override fun getName(): String
Content copied to clipboard
getPluginLoader
Link copied to clipboard
@NotNull()
override fun getPluginLoader(): PluginLoader
Content copied to clipboard
getResource
Link copied to clipboard
@Nullable()
open override fun getResource(@NotNull() p0: String): InputStream?
Content copied to clipboard
getServer
Link copied to clipboard
@NotNull()
override fun getServer(): Server
Content copied to clipboard
getTextResource
Link copied to clipboard
@Nullable()
fun getTextResource(@NotNull() p0: String): Reader?
Content copied to clipboard
hashCode
Link copied to clipboard
override fun hashCode(): Int
Content copied to clipboard
init
Link copied to clipboard
fun init(@NotNull() p0: PluginLoader, @NotNull() p1: Server, @NotNull() p2: PluginDescriptionFile, @NotNull() p3: File, @NotNull() p4: File, @NotNull() p5: ClassLoader)
Content copied to clipboard
isEnabled
Link copied to clipboard
override fun isEnabled(): Boolean
Content copied to clipboard
isNaggable
Link copied to clipboard
override fun isNaggable(): Boolean
Content copied to clipboard
load
Link copied to clipboard
open fun load()
Content copied to clipboard
Called when the plugin was loaded
onCommand
Link copied to clipboard
open override fun onCommand(@NotNull() p0: CommandSender, @NotNull() p1: Command, @NotNull() p2: String, @NotNull() p3: Array<String>): Boolean
Content copied to clipboard
onDisable
Link copied to clipboard
override fun onDisable()
Content copied to clipboard
onEnable
Link copied to clipboard
override fun onEnable()
Content copied to clipboard
onLoad
Link copied to clipboard
override fun onLoad()
Content copied to clipboard
onTabComplete
Link copied to clipboard
@Nullable()
open override fun onTabComplete(@NotNull() p0: CommandSender, @NotNull() p1: Command, @NotNull() p2: String, @NotNull() p3: Array<String>): MutableList<String>?
Content copied to clipboard
reloadConfig
Link copied to clipboard
open override fun reloadConfig()
Content copied to clipboard
saveConfig
Link copied to clipboard
open override fun saveConfig()
Content copied to clipboard
saveDefaultConfig
Link copied to clipboard
open override fun saveDefaultConfig()
Content copied to clipboard
saveResource
Link copied to clipboard
open override fun saveResource(@NotNull() p0: String, p1: Boolean)
Content copied to clipboard
setEnabled
Link copied to clipboard
fun setEnabled(p0: Boolean)
Content copied to clipboard
setNaggable
Link copied to clipboard
override fun setNaggable(p0: Boolean)
Content copied to clipboard
shutdown
Link copied to clipboard
open fun shutdown()
Content copied to clipboard
Called when the plugin gets disabled
startup
Link copied to clipboard
open fun startup()
Content copied to clipboard
Called when the plugin was enabled
toString
Link copied to clipboard
@NotNull()
open override fun toString(): String
Content copied to clipboard