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

net.chestmc.common.extensions.Plugins.kt Maven / Gradle / Ivy

package net.chestmc.common.extensions

import org.bukkit.plugin.Plugin

/**
 * Gets all holograms registered by this plugin.
 */
//inline val Plugin.holograms: MutableCollection get() = HologramsAPI.getHolograms(this)

/**
 * Creates a hologram with this plugins as owner and the specified location.
 */
//fun Plugin.createHologram(location: Location): Hologram = HologramsAPI.createHologram(this, location)

/**
 * Logs a message to console of this server by this plugin.
 */
fun Plugin.log(message: Any) = console.log("§7[§e${name}§7] §f$message")

/**
 * Logs a error message to console of this server by this plugin.
 */
fun Plugin.logError(message: Any) = console.log("§7[§e${name}§7] §cERROR §7- §f$message")

/**
 * Logs a warning message to console of this server by this plugin.
 */
fun Plugin.logWarning(message: Any) = console.log("§7[§e${name}§7] §eWARNING §7- §f$message")




© 2015 - 2025 Weber Informatics LLC | Privacy Policy