{"id":50324761,"url":"https://github.com/standardan/cratekeys","last_synced_at":"2026-05-29T05:04:10.579Z","repository":{"id":361059393,"uuid":"1252926254","full_name":"Standardan/cratekeys","owner":"Standardan","description":"Reward crates with keys and an animated roulette opening for Paper 1.21+.","archived":false,"fork":false,"pushed_at":"2026-05-29T03:06:34.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T04:17:05.793Z","etag":null,"topics":["bukkit","crates","gui","java","minecraft","minecraft-plugin","paper","paper-plugin","rewards","spigot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Standardan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T02:21:27.000Z","updated_at":"2026-05-29T03:06:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Standardan/cratekeys","commit_stats":null,"previous_names":["standardan/cratekeys"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Standardan/cratekeys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standardan%2Fcratekeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standardan%2Fcratekeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standardan%2Fcratekeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standardan%2Fcratekeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Standardan","download_url":"https://codeload.github.com/Standardan/cratekeys/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Standardan%2Fcratekeys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33637486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bukkit","crates","gui","java","minecraft","minecraft-plugin","paper","paper-plugin","rewards","spigot"],"created_at":"2026-05-29T05:03:56.067Z","updated_at":"2026-05-29T05:04:10.570Z","avatar_url":"https://github.com/Standardan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrateKeys\n\nReward **crates** with collectible keys and an **animated roulette** opening, for Paper 1.21+.\nBind any block as a crate, hand out keys, and let players right-click to spin for weighted rewards.\n\n## Download\n\n**[Download the latest release »](https://github.com/Standardan/cratekeys/releases/latest)**\n\nDrop the `.jar` into your server's `plugins/` folder and restart. Requires Paper 1.21+ (Java 21).\n\n## Features\n\n- **Config-driven crates** — define crates, key items, and weighted reward tables in `config.yml`\n- **Animated spin GUI** — icons scroll across a roulette and land on the winning reward, with sound\n- **Tagged key items** — keys are identified by a PersistentDataContainer tag, not their name\n- **Block-bound crates** — `/crate setblock \u003ccrate\u003e` turns any block into a crate; right-click with a key opens it\n- **Weighted rewards** run as console commands (`give`, `eco`, anything), so rewards are unlimited\n- The spin GUI is **click-locked** so players can't pull items out mid-animation\n\n## Commands (`cratekeys.admin`, default op)\n\n| Command | Description |\n|---|---|\n| `/crate givekey \u003cplayer\u003e \u003ccrate\u003e [amount]` | Give crate keys |\n| `/crate setblock \u003ccrate\u003e` | Bind the block you're looking at as a crate |\n| `/crate removeblock` | Unbind a crate block |\n| `/crate reload` | Reload config |\n| `/crate list` | List defined crates |\n\n## Configuration\n\n```yaml\ncrates:\n  vote:\n    display-name: \"\u003caqua\u003e\u003cbold\u003eVote Crate\u003c/bold\u003e\"\n    key-name: \"\u003caqua\u003eVote Key\"\n    key-material: TRIPWIRE_HOOK\n    rewards:\n      - name: \"\u003cwhite\u003e16 Diamonds\"\n        weight: 50        # relative odds\n        icon: DIAMOND\n        commands:\n          - \"give %player% diamond 16\"\n```\n\n## Design notes\n\n- **The winner is decided before the animation starts** (`Crate#roll()` does a single weighted draw).\n  The roulette is pure presentation — it can't change the outcome, which keeps rewards honest and\n  the code simple.\n- **The GUI is identified by a custom `InventoryHolder`** (`SpinGui`), so the click listener cancels\n  interaction by *type*, never by fragile title-string matching.\n- **Animation runs on a repeating scheduler task** at a fixed tick interval and cancels itself when done.\n\n## Building\n\nJDK 21 + Maven. `mvn clean package` → `target/cratekeys-1.0.0.jar`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandardan%2Fcratekeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstandardan%2Fcratekeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandardan%2Fcratekeys/lists"}