This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.lished.events.inventory.components | |
import fr.mrmicky.fastinv.FastInv | |
import fr.mrmicky.fastinv.ItemBuilder | |
fun selector(parent: FastInv, slot: Int, item: ItemBuilder, list: List<String>, padding: Int, selectedColor: String, defaultColor: String, default: Int, onClick: () -> Unit) { | |
val range = padding..list.size+(padding-1) | |
var selected = default | |
parent.setItem(slot, item.lore(mutableListOf<String>().apply { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Color | |
import java.io.IOException | |
import java.io.OutputStream | |
import java.net.URL | |
import javax.net.ssl.HttpsURLConnection | |
class DiscordWebhook(private val url: String) { | |
var content: String? = null | |
var username: String? = null | |
var avatarUrl: String? = null |