A Kotlin utility library for minecraft plugins.
plugin.events {
cancelIf<BlockBreakEvent> { event ->
event.player.isOp
}
}
enum class Permissions(
override val node: String,
override val description: String?,
override val default: PermissionDefault?,
override val children: Map<Permission, Boolean>,
) : Permission {
TEST("mcorouhlin.test", "test permission", PermissionDefault.OP, mapOf()),
;
}
val inventory = plugin.inventory(Component.text("some inventory")) {
default(itemStack(Material.LIGHT_GRAY_STAINED_GLASS_PANE))
slot(1, itemStack(Material.LIGHT_GRAY_STAINED_GLASS_PANE)) {
// on clicked
}
}
This project is licensed under GPL-3.0. See also LICENCE.
This project is including the following OpenSource project codes:
- Shynixn/MCCoroutine (MIT License)
- nicolaic/brigadier-dsl (Apache-2.0 License)