{"id":18468719,"url":"https://github.com/funnyguilds/funnycommands","last_synced_at":"2025-04-08T10:32:30.915Z","repository":{"id":40650496,"uuid":"252295795","full_name":"FunnyGuilds/FunnyCommands","owner":"FunnyGuilds","description":"FunnyGuilds commands framework based on top of the Panda dependency injection 🔨","archived":false,"fork":false,"pushed_at":"2025-03-14T15:05:04.000Z","size":446,"stargazers_count":15,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T11:03:37.891Z","etag":null,"topics":["bukkit","command-framework","funnyguilds","spigot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FunnyGuilds.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-01T21:58:55.000Z","updated_at":"2025-01-22T17:01:43.000Z","dependencies_parsed_at":"2023-02-10T05:15:22.239Z","dependency_job_id":"4b7e9028-b13f-4ca8-97e0-9ff8f36a5352","html_url":"https://github.com/FunnyGuilds/FunnyCommands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunnyGuilds%2FFunnyCommands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunnyGuilds%2FFunnyCommands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunnyGuilds%2FFunnyCommands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FunnyGuilds%2FFunnyCommands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FunnyGuilds","download_url":"https://codeload.github.com/FunnyGuilds/FunnyCommands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824143,"owners_count":21002213,"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","command-framework","funnyguilds","spigot"],"created_at":"2024-11-06T10:08:00.074Z","updated_at":"2025-04-08T10:32:30.892Z","avatar_url":"https://github.com/FunnyGuilds.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FunnyCommands ![FunnyCommands CI](https://github.com/FunnyGuilds/FunnyCommands/actions/workflows/gradle.yml/badge.svg) ![maven](https://maven.reposilite.com/api/badge/latest/releases/net/dzikoysk/funnycommands?color=40c14a\u0026name=Latest%20Release\u0026prefix=v)\n\nFunnyGuilds command framework based on top of the [Panda](https://github.com/panda-lang/panda) dependency injection. Supported features:\n* Dynamic loading of commands\n* Configurable placeholders to extend annotation based API\n* Customizable dependency injection \n* Supports reloading \n* Null safety\n\n### Install\nFunnyCommands artifact is available in [repo.panda-lang.org](https://repo.panda-lang.org/) repository. \nAdd these declarations to your `pom.xml`. \n\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n    \u003cid\u003ereposilite-repository\u003c/id\u003e\n    \u003cname\u003eReposilite Repository\u003c/name\u003e\n    \u003curl\u003ehttps://maven.reposilite.com/releases\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003enet.dzikoysk\u003c/groupId\u003e\n    \u003cartifactId\u003efunnycommands\u003c/artifactId\u003e\n    \u003cversion\u003e0.8.0\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nOr in Gradle:\n\n```groovy\nrepositories {\n  maven { url \"https://maven.reposilite.com/releases\" }\n}\n\ndependencies {\n  implementation \"net.dzikoysk:funnycommands:0.8.0\"\n}\n```\n\nRequirements:\n* Java 8 or higher\n* Spigot 1.8.8 or higher\n* Panda Utilities\n\n### Preview\nAs an example, we can take pointless `/test \u003cplayer\u003e [guild]` command.\n\n```java\n@FunnyComponent\nprivate static final class TestCommand {\n\n    @FunnyCommand(\n        name = \"${fc.test-alias}\",\n        description = \"Test command\",\n        permission = \"fc.test\",\n        usage = \"/${fc.test-alias} \u003cplayer\u003e [guild]\",\n        completer = \"online-players:5 guilds:5\",\n        parameters = \"player:target [guild:arg-guild]\"\n    )\n    SenderResponse test(CommandSender sender, @Arg(\"target\") @Nullable Player target, @Arg(\"arg-guild\") Option\u003cGuild\u003e guild) {\n        return new SenderResponse(target, \"Test ${fc.time} \u003e \" + sender + \" called \" + target + \" and \" + guild.getOrNull());\n    }\n\n}\n```\n\nThe configuration for this kind of command may look like this:\n\n```java\nthis.funnyCommands = FunnyCommands.configuration(() -\u003e this)\n        .registerDefaultComponents()\n        .placeholders(PLACEHOLDERS)\n        .type(new PlayerType(super.getServer()))\n        .type(\"guild\", ((context, required, guild) -\u003e guildService.guilds.get(guild)))\n        .hook();\n```\n\n### Guides\n`#soon™`\n\nAt this moment you can see full and up-to-date example in [FunnyCommandsAcceptanceTestPlugin](https://github.com/FunnyGuilds/FunnyCommands/blob/master/funnycommands-test/src/main/java/net/dzikoysk/funnycommands/acceptance/FunnyCommandsAcceptanceTestPlugin.java) class\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyguilds%2Ffunnycommands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnyguilds%2Ffunnycommands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyguilds%2Ffunnycommands/lists"}