{"id":27246312,"url":"https://github.com/mqzn/mcommands","last_synced_at":"2025-04-10T21:39:01.653Z","repository":{"id":153157436,"uuid":"628125182","full_name":"Mqzn/mCommands","owner":"Mqzn","description":"Advanced command dispatching framework","archived":false,"fork":false,"pushed_at":"2023-06-26T16:58:51.000Z","size":400,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-06-27T01:18:50.769Z","etag":null,"topics":["bukkit-library","command","command-lib","commands","commands-dispatcher","java","java-command-dispatcher","java-command-framework","minecraft","spigot"],"latest_commit_sha":null,"homepage":"","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/Mqzn.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}},"created_at":"2023-04-15T01:35:59.000Z","updated_at":"2024-04-14T23:30:21.812Z","dependencies_parsed_at":null,"dependency_job_id":"99157884-2fbc-49cd-9d7e-b6adddedcccb","html_url":"https://github.com/Mqzn/mCommands","commit_stats":null,"previous_names":[],"tags_count":14,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqzn%2FmCommands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqzn%2FmCommands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqzn%2FmCommands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mqzn%2FmCommands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mqzn","download_url":"https://codeload.github.com/Mqzn/mCommands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305190,"owners_count":21081554,"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-library","command","command-lib","commands","commands-dispatcher","java","java-command-dispatcher","java-command-framework","minecraft","spigot"],"created_at":"2025-04-10T21:39:00.927Z","updated_at":"2025-04-10T21:39:01.634Z","avatar_url":"https://github.com/Mqzn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mCommands\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.codefactor.io/repository/github/mqzn/mcommands\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/mqzn/mcommands/badge\" alt=\"CodeFactor\" /\u003e\u003c/a\u003e \n  \u003cimg src=\"https://github.com/Mqzn/mCommands/blob/master/img.png\" alt=\"mCommands logo\"\u003e\n\u003c/div\u003e\n\n\nAn advanced general purpose command dispatching framework\ndesigned using OOP concepts.The library is user-friendly and provides \nhigh performance along with a high quality of production code.\n\nThis library utilizes [Kyori Adventure](https://github.com/KyoriPowered/adventure) for\nmessages and text styles\n\nso in the installation you must include the dependencies of Kyori in your project's dependencies control tool file\nhere's an example using build.gradle:\n\n```gradle\n\ndependencies {\n    compileOnly \"net.kyori:adventure-api:4.13.1\"\n    compileOnly \"net.kyori:adventure-platform-bukkit:4.3.0\"\n}\n\n```\n\n## Installation\n\nmCommands has its own repo in maven central\nso all you have to do is like this:\n\n```gradle \nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation 'io.github.mqzn:mCommands-\u003cplatform\u003e:\u003cLATEST_VERSION\u003e'\n}\n```\n\n## Platforms\n\n### Common\n\nThe main platform that contain the core of the library\n\n```gradle\nimplementation 'io.github.mqzn:mCommands-common:\u003cLATEST_VERSION\u003e'\n```\n\n### Spigot\n\nThe spigot platform is for minecraft spigot api development\n\n```gradle\nimplementation 'io.github.mqzn:mCommands-spigot:\u003cLATEST_VERSION\u003e'\n```\n\n### Bungee\n\nThis bungeecord platform is for minecraft bungeecord proxy api development, allows you\nto declare and register bungeecord commands.\n\n```gradle\nimplementation 'io.github.mqzn:mCommands-bungee:\u003cLATEST_VERSION\u003e'\n```\n\n## Wiki\nIf you want to learn how to fully utilize the amazing potential of this library.\nyou must read the wiki pages starting from [here](https://github.com/Mqzn/mCommands/wiki)\nYou will also need the wiki in order to make something cool like the example below:\n\n### Code Example\nHere's a quick example on how to create a command using mCommands.\n```java\npublic final class SpigotPluginTest extends JavaPlugin {\n\t\n\tprivate SpigotCommandManager commandManager;\n\t\n\t@Override\n\tpublic void onEnable() {\n\t\tvar cmd = Command.builder(commandManager, \"test\")\n\t\t\t.info(new CommandInfo(\"test.perm\", \"Test cmd\", \"testis\"))\n\t\t\t.requirement(SpigotCommandRequirement.ONLY_PLAYER_EXECUTABLE)\n\t\t\t.cooldown(new CommandCooldown(5, TimeUnit.MINUTES))\n\t\t\t.executionMeta(\n\t\t\t\tSpigotCommandSyntaxBuilder.builder(commandManager, \"test\")\n\t\t\t\t\t.argument(Argument.literal(\"testsub\"))\n\t\t\t\t\t.execute((sender, context) -\u003e sender.sendMessage(\"Test sub works !\"))\n\t\t\t\t\t.build()\n\t\t\t)\n\t\t\t.defaultExecutor((s, context) -\u003e s.sendMessage(\"OMG NO ARGS !\"))\n\t\t\t.build();\n\t\t\n\t\tcommandManager.register(cmd);\n\t}\n\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqzn%2Fmcommands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmqzn%2Fmcommands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmqzn%2Fmcommands/lists"}