{"id":30266982,"url":"https://github.com/itzispyder/pdk","last_synced_at":"2025-08-15T23:27:33.037Z","repository":{"id":211663549,"uuid":"729675008","full_name":"ItziSpyder/PDK","owner":"ItziSpyder","description":"MineCraft - Plugin Development Kit","archived":false,"fork":false,"pushed_at":"2024-07-07T04:09:53.000Z","size":127,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-08T03:25:45.211Z","etag":null,"topics":["bukkity","library","minecraft","paper","plugins","spigot"],"latest_commit_sha":null,"homepage":"https://jitpack.io/#ItziSpyder/PDK","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/ItziSpyder.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}},"created_at":"2023-12-10T01:20:05.000Z","updated_at":"2024-07-07T04:07:49.000Z","dependencies_parsed_at":"2024-07-09T12:04:43.445Z","dependency_job_id":null,"html_url":"https://github.com/ItziSpyder/PDK","commit_stats":null,"previous_names":["itzispyder/mc-pdk","itzispyder/pdk"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ItziSpyder/PDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItziSpyder%2FPDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItziSpyder%2FPDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItziSpyder%2FPDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItziSpyder%2FPDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItziSpyder","download_url":"https://codeload.github.com/ItziSpyder/PDK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItziSpyder%2FPDK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270644764,"owners_count":24621332,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"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":["bukkity","library","minecraft","paper","plugins","spigot"],"created_at":"2025-08-15T23:26:33.962Z","updated_at":"2025-08-15T23:27:33.023Z","avatar_url":"https://github.com/ItziSpyder.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDK\nThe Best Plugin Development Kit\n\u003cbr\u003e\n---\n### Adding to Gradle\n\n#### 1) Duplicates strategy\n```gradle\njar {\n    from {\n        duplicatesStrategy = DuplicatesStrategy.EXCLUDE\n        configurations.runtimeClasspath.collect {\n            it.isDirectory() ? it : zipTree(it)\n        }\n    }\n}\n```\n\n#### 2) Add implementations\n```yml\n- download latest release of PDK\n- create a folder named libs in your project and drag your downloaded jar in there\n- type the following down in your build.gradle\n```\n```gradle\ndependencies {\n    implementation files(\"libs/PDK-1.3.5.jar\")\n}\n```\n\n#### 3) Set encoding to UTF-8\n```gradle\ncompileJava.options.encoding = 'UTF-8'\ntasks.withType(JavaCompile).configureEach {\n    if (targetJavaVersion \u003e= 10 || JavaVersion.current().isJava10Compatible()) {\n        options.encoding = 'UTF-8'\n        options.release.set(targetJavaVersion)\n    }\n}\n```\n\n#### 4) Initialize PDK `PDK.init(this)`\n```java\npublic final class CustomPlugin extends JavaPlugin {\n\n    @Override\n    public void onEnable() {\n        // Plugin startup logic\n        PDK.init(this);\n\n        // commands\n        new TestCommand().register();\n\n        // listeners\n        new TestListener().register();\n\n        // Items\n        new TestCustomItem().register();\n    }\n\n    @Override\n    public void onDisable() {\n        // Plugin shutdown logic\n    }\n}\n```\n\n---\n\n### GUI Builders\nCreate complex GUI's with a few simple calls!\n```java\npublic class TestGUI {\n\n    public static final CustomGui GUI = CustomGui.create()\n            .title(\"Super Epik Title\")\n            .size(27)\n            .onClose(e -\u003e e.getPlayer().sendMessage(\"e\"))\n            .defineMain(e -\u003e {\n                e.setCancelled(true);\n            })\n            .define(11, new ItemStack(Material.BARRIER), e -\u003e {\n                ServerUtils.dispatchf(CustomPlugin.class,\"kill %s\", e.getWhoClicked().getUniqueId());\n            })\n            .define(13, new ItemStack(Material.GREEN_WOOL), e -\u003e {\n                e.getWhoClicked().sendMessage(\"EeeeeEEE\");\n                e.getWhoClicked().closeInventory();\n            })\n            .define(15, new ItemStack(Material.DIAMOND), e -\u003e {\n                e.getWhoClicked().getInventory().addItem(e.getCurrentItem().clone());\n                e.getWhoClicked().closeInventory();\n            })\n            .build();\n    \n    public static void openFor(Player player) {\n        player.openInventory(GUI.getInventory());\n    }\n}\n```\n\n### Item Builders\nItemMetas are too annoying for something as simple as adding lore?\n```java\npublic class TestItem {\n    \n    public static final ItemStack ITEM = ItemBuilder.create()\n            .name(\"Custom Title\")\n            .lore(\"lore 1\")\n            .lore(\"lore 2\")\n            .enchant(Enchantment.MENDING, 5)\n            .count(64)\n            .build();\n}\n```\n\n### Discord Webhooks\nSick of parsing JSON? No worries!\n```java\npublic class DiscordWebhookSender {\n\n    public static void sendWebhook(String webhookUrl) {\n        DiscordWebhook.create() // none of the below are required, required ones already have their default values from the builder\n                .username(/* custom username of the webhook */)\n                .textToSpeech() // enables text to speech\n                .avatar(/* custom avatar url */)\n                .content(/* the message to send */)\n                .addEmbed(new DiscordEmbed.Image(/* send an embed with only an image */))\n                .addEmbed(DiscordEmbed.create()\n                        .url(/* embed title's click event url */)\n                        .desc/* embed description */()\n                        .title(/* embed title */)\n                        .author(/* embed's author stamp (top left) */)\n                        .image(/* embed's image */)\n                        .footer(/* embed's footer */)\n                        .color(/* embed's side color */)\n                        .thumbnail(/* embed's thumbnail */)\n                        .timestamp(/* embed's timestamp, suggested \"LocalDateTime.now()\" */)\n                        .addField(/* add embed field */)\n                        .build())\n                .send(webhookUrl); // provide a webhook url\n    }\n}\n```\n\n### And More!\n- Custom command builder\n- Custom command completion tree\n- Custom item with event action\n- Custom console printing tree\n- Block display raytracer (block display entities)\n- Custom display raytracer (particles... etc)\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzispyder%2Fpdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzispyder%2Fpdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzispyder%2Fpdk/lists"}