{"id":16380411,"url":"https://github.com/sya-ri/ktinventory","last_synced_at":"2025-06-11T17:05:08.830Z","repository":{"id":65730786,"uuid":"544298170","full_name":"sya-ri/ktInventory","owner":"sya-ri","description":"Spigot library with Kotlin for easy inventory creation and event handling","archived":false,"fork":false,"pushed_at":"2025-05-23T19:41:28.000Z","size":442,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T10:50:31.311Z","etag":null,"topics":["kotlin","kotlin-library","minecraft","minecraft-plugin","paper","paper-plugin","spigot","spigot-plugin"],"latest_commit_sha":null,"homepage":"https://gh.s7a.dev/ktInventory","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sya-ri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"sya_ri"}},"created_at":"2022-10-02T05:50:31.000Z","updated_at":"2025-04-20T17:12:54.000Z","dependencies_parsed_at":"2023-10-05T05:26:04.831Z","dependency_job_id":"ba6995a4-0ec6-48e8-829e-b12ee8774163","html_url":"https://github.com/sya-ri/ktInventory","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sya-ri/ktInventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sya-ri%2FktInventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sya-ri%2FktInventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sya-ri%2FktInventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sya-ri%2FktInventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sya-ri","download_url":"https://codeload.github.com/sya-ri/ktInventory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sya-ri%2FktInventory/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259302062,"owners_count":22837074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kotlin","kotlin-library","minecraft","minecraft-plugin","paper","paper-plugin","spigot","spigot-plugin"],"created_at":"2024-10-11T03:51:23.324Z","updated_at":"2025-06-11T17:05:08.812Z","avatar_url":"https://github.com/sya-ri.png","language":"Kotlin","funding_links":["https://ko-fi.com/sya_ri"],"categories":[],"sub_categories":[],"readme":"# ktInventory\n\n[![Kotlin](https://img.shields.io/badge/kotlin-2.1.10-blue.svg?logo=kotlin)](http://kotlinlang.org)\n[![GitHub License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Maven Central](https://img.shields.io/maven-central/v/dev.s7a/ktInventory)](https://search.maven.org/artifact/dev.s7a/ktInventory)\n[![KDoc link](https://img.shields.io/badge/API_reference-KDoc-blue)](https://gh.s7a.dev/ktInventory)\n[![Build status](https://img.shields.io/github/actions/workflow/status/sya-ri/ktInventory/build.yml?branch=master\u0026label=Test\u0026logo=github)](.github/workflows/build.yml)\n\nSpigot library with Kotlin for easy inventory creation and event handling\n\n## Installation\n\n### build.gradle.kts\n\n```kotlin\nrepositories {\n    maven(url = \"https://s01.oss.sonatype.org/content/repositories/snapshots/\")\n}\n\ndependencies {\n    implementation(\"dev.s7a:ktInventory:2.0.0-SNAPSHOT\")\n}\n```\n\n## Usage\n\n```kotlin\nclass SimpleMenu(\n    plugin: Plugin,\n) : KtInventory(plugin, 1) {\n    override fun title() = \"\u00260\u0026lSelect where to teleport\"\n\n    init {\n        button(3, ItemStack(Material.RED_BED)) { event, _ -\u003e\n            val player = event.whoClicked as? Player ?: return@button\n            val respawnLocation = player.respawnLocation\n            if (respawnLocation != null) {\n                player.teleport(respawnLocation)\n            } else {\n                player.sendMessage(\"Not found respawnLocation\")\n            }\n            player.closeInventory()\n        }\n        button(5, ItemStack(Material.COMPASS)) { event, _ -\u003e\n            val player = event.whoClicked as? Player ?: return@button\n            player.teleport(player.world.spawnLocation)\n            player.closeInventory()\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsya-ri%2Fktinventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsya-ri%2Fktinventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsya-ri%2Fktinventory/lists"}