{"id":21161735,"url":"https://github.com/maksim2498/mc-commands","last_synced_at":"2026-04-24T08:32:24.932Z","repository":{"id":58125966,"uuid":"523498332","full_name":"Maksim2498/mc-commands","owner":"Maksim2498","description":"Java library that provides better command API for Bukkit plugins","archived":false,"fork":false,"pushed_at":"2022-10-04T14:47:03.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T04:21:11.878Z","etag":null,"topics":["bukkit","commands","java","library","papermc","spigot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Maksim2498.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-10T21:12:57.000Z","updated_at":"2022-09-29T22:52:03.000Z","dependencies_parsed_at":"2023-01-11T15:30:38.933Z","dependency_job_id":null,"html_url":"https://github.com/Maksim2498/mc-commands","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/Maksim2498/mc-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksim2498%2Fmc-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksim2498%2Fmc-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksim2498%2Fmc-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksim2498%2Fmc-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maksim2498","download_url":"https://codeload.github.com/Maksim2498/mc-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maksim2498%2Fmc-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32216213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T08:24:32.376Z","status":"ssl_error","status_checked_at":"2026-04-24T08:24:26.731Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","commands","java","library","papermc","spigot"],"created_at":"2024-11-20T13:17:23.901Z","updated_at":"2026-04-24T08:32:24.904Z","avatar_url":"https://github.com/Maksim2498.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commands\n\n![Logo](/images/logo.png)\n\n## Index\n\n- [Index](#index);\n- [About](#about);\n- [Installation](#installation);\n- [Building](#building);\n- [Examples](#examples);\n    - [Teleportation Plugin](#teleportation-plugin);\n    - [Real Plugin](#real-plugin);\n- [Documentation](#documentation).\n\n## About\n\nThis is a java library which provides a better commands API for Bukkit plugins.\n\n## Installation\n\nFirst, add MoonTalk repository to your pom.xml:\n\n```xml\n\u003crepository\u003e\n    \u003cid\u003emoontalk\u003c/id\u003e\n    \u003curl\u003ehttsp://repo.moontalk.space/repository/maven-releases/\u003c/url\u003e\n\u003c/repository\u003e\n```\n\nSecond, add library as dependency:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003espace.moontalk.mc\u003c/groupId\u003e\n    \u003cartifactId\u003ecommands\u003c/artifactId\u003e\n    \u003cversion\u003e4.1.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nDone.\n\n## Building\n\nJust execute the following Maven command in your terminal:\n\n```bash\nmvn install\n```\n\n## Examples\n\n### Teleportation Plugin\n\nThis is a simple player-to-player teleportation plugin example:\n\n```java\npublic class Plugin extends JavaPlugin {\n    @Override\n    public void onEnable() {\n        final var commandHandler = new DefaultMultiCommandHandler(this);\n\n        commandHandler.addCommandRoute(\"mytp %p %p\", call -\u003e {\n            final Player from = call.getPlaceholdedAt(0);\n            final Player to   = call.getPlaceholdedAt(1);\n            from.teleport(to);\n        });\n    }\n}\n```\n\n`%p` is a _placeholder_ which stands for an online player.\n\nWith this little of code you get:\n- autocompletions;\n- error handling;\n- working `mytp` command.\n\nFor real projects you can config all messages and add your own placeholders.\nAlso you can specify required _priority_ and command _sender classes_ for _route handlers_.\n\n### Real Plugin:\n\nFor a complete real-world example you can see [this plugin](https://github.com/Maksim2498/mc-cpspeed).\nFull power of the plugin is shown in the `setupCommands` method of the [main class](https://github.com/Maksim2498/mc-cpspeed/blob/main/src/main/java/space/moontalk/mc/cpspeed/CPSpeed.java);\n\n## Documentation\n\nWill be added soon... (maybe)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksim2498%2Fmc-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaksim2498%2Fmc-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksim2498%2Fmc-commands/lists"}