{"id":15175123,"url":"https://github.com/chafficui/crucialapi","last_synced_at":"2026-01-10T02:12:53.371Z","repository":{"id":41050402,"uuid":"318478521","full_name":"Chafficui/CrucialAPI","owner":"Chafficui","description":"CrucialAPI is an open-source easy-to-use Spigot lib that strives to make minecraft plugin development easier.","archived":true,"fork":false,"pushed_at":"2023-06-18T12:15:33.000Z","size":166,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-27T12:03:12.522Z","etag":null,"topics":["bukkit","bukkit-api","minecraft","spigot","spigot-api","spigot-plugin"],"latest_commit_sha":null,"homepage":"https://chafficplugins.github.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chafficui.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-04T10:16:23.000Z","updated_at":"2024-03-12T13:50:40.000Z","dependencies_parsed_at":"2024-08-28T16:35:09.313Z","dependency_job_id":null,"html_url":"https://github.com/Chafficui/CrucialAPI","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chafficui%2FCrucialAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chafficui%2FCrucialAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chafficui%2FCrucialAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chafficui%2FCrucialAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chafficui","download_url":"https://codeload.github.com/Chafficui/CrucialAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875424,"owners_count":16554677,"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":["bukkit","bukkit-api","minecraft","spigot","spigot-api","spigot-plugin"],"created_at":"2024-09-27T12:03:28.896Z","updated_at":"2025-10-01T12:31:00.950Z","avatar_url":"https://github.com/Chafficui.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrucialAPI\n[![](https://jitpack.io/v/Chafficui/CrucialAPI.svg)](https://jitpack.io/#Chafficui/CrucialAPI)\n\n# CrucialAPI\n\nCrucialAPI is an open-source, easy-to-use Spigot API that aims to simplify plugin development.\n\n\u003e Note: If you have any suggestions, questions, or feedback for this wiki, please use [Discussions](https://github.com/Chafficui/CrucialAPI/discussions).\n\n## Setup\n\n\u003e **Attention!** Do not forget to add CrucialAPI as a dependency in your \"plugin.yml\" file!\n\n### Maven\n\n```XML\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.chafficui\u003c/groupId\u003e\n  \u003cartifactId\u003eCrucialAPI\u003c/artifactId\u003e\n  \u003cversion\u003e1.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```Gradle\nimplementation 'io.github.chafficui:CrucialAPI:1.2'\n```\n\n## Examples\n\n```Java\npublic class Main extends JavaPlugin {\n    private final String CrucialAPIVersion = \"1.2\";\n\n    /** Auto-download CrucialAPI */\n    @Override\n    public void onLoad(){\n        if(getServer().getPluginManager().getPlugin(\"CrucialAPI\") == null){\n            try {\n                URL website = new URL(\"https://github.com/Chafficui/CrucialAPI/releases/download/v\" + CrucialAPIVersion + \"/CrucialAPI-v\" + CrucialAPIVersion + \".jar\");\n                ReadableByteChannel rbc = Channels.newChannel(website.openStream());\n                FileOutputStream fos = new FileOutputStream(\"plugins/CrucialAPI.jar\");\n                fos.getChannel().transferFrom(rbc, 0L, Long.MAX_VALUE);\n                Bukkit.getPluginManager().loadPlugin(new File(\"plugins/CrucialAPI.jar\"));\n            } catch (IOException | InvalidDescriptionException | org.bukkit.plugin.InvalidPluginException e) {\n                e.printStackTrace();\n                Bukkit.getPluginManager().disablePlugin(this);\n            }\n        }\n    }\n\n    /** Auto-update CrucialAPI */\n    @Override\n    public void onEnable(){\n        if(Server.checkVersion(new String[]{\"1.16\", \"1.15\"})){\n            Crucial.getVersion(CrucialAPIVersion, this);\n        } else {\n            //CrucialAPI only supports 1.16 and 1.15\n            Bukkit.getPluginManager().disablePlugin(this);\n        }\n        new CrucialItem(\"Super shovel\", Material.DIAMOND_SHOVEL, \"item\").setCrafting(new String[]{\"Air\", \"AIR\", \"AIR\", \"DIAMOND\", \"DIAMOND\", \"DIAMOND\", \"AIR\", \"AIR\", \"AIR\"});\n    }\n}\n```\n\n## Download\n\nYou can get the latest stable release build here: [Stable Build](https://github.com/Chafficui/CrucialAPI/releases/latest)  \nIf you want the most up-to-date builds, you can find them here: [Releases](https://github.com/Chafficui/CrucialAPI/releases)\n\n## Documentation\n\n[Documentation](https://www.javadoc.io/doc/io.github.chafficui/CrucialAPI/latest/)  \nCurrently, some parts of CrucialAPI lack proper documentation. However, we are working hard to improve it!\n\n## Getting Help\n\nIf you need help or want to chat with the CAPI team or other developers, you can join the [Official ChafficPlugins Discord Server](https://discord.gg/ARxYx4Z).  \nAlternatively, you can use the [Discussions](https://github.com/Chafficui/CrucialAPI/discussions) section.\n\n## Dependencies\n\nThis project requires Spigot 1.15 or higher.\n\nHere are some additional information about LTS versions:\n\n| Version | Supported          |\n| ------- | ------------------ |\n| 2.2.x   | :white_check_mark: |\n| 2.1.x   | :x:                |\n| 2.0.x   | :x:                |\n| 1.x.x   | :x:                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchafficui%2Fcrucialapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchafficui%2Fcrucialapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchafficui%2Fcrucialapi/lists"}