Utils

object Utils

Functions

Link copied to clipboard
fun hasEnoughSpace(player: Player, neededSize: Int): Boolean

Check if player has enough space in inventory

Link copied to clipboard
fun strikeLightning(loc: Location, plugin: JavaPlugin? = null)

Strike lightning at given location

Link copied to clipboard
fun strikeLightnings(loc: Location, plugin: JavaPlugin, times: Int = 1, delay: Long = 0): CompletableFuture<Boolean>

Strike lightning at given location multiple times