allaymc-plugin-dev
Create, update and troubleshoot AllayMC plugins in Java or other JVM languages. Use when (1) creating a new AllayMC plugin. (2) migrating an existing plugin to AllayMC. (3) troubleshooting an AllayMC plugin.
- License 许可
- LGPL-2.1
- 最近更新
- 2026-11-15
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- allaymc-plugin-dev
- license
- LGPL-2.1
- metadata
- { "author": "AllayMC" }
- description
- Create, update and troubleshoot AllayMC plugins in Java or other JVM languages. Use when (1) creating a new AllayMC plugin. (2) migrating an existing plugin to AllayMC. (3) troubleshooting an AllayMC plugin.
02 资源文件 3
- 许可证LICENSE25.9 KB
- 参考文档README.md1.4 KB
- 参考文档skill-report.json39.7 KB
03 SKILL.md 正文
AllayMC Plugin Development
About AllayMC
AllayMC is a third-party server software for Minecraft: Bedrock Edition written in Java. It provides a set of APIs for plugins to use. AllayMC is broadly divided into the following two modules:
- api: A set of interfaces provided for plugins.
- server: An implementation of the api. Plugins usually don't have access to it.
About Plugin
Plugins in AllayMC are just like Bukkit plugins, they are loaded by the server when the server starts. Plugins are used to extend server functionality.
Workflow for a new plugin
1) Initialize the project
- Use the official template at
references/JavaPluginTemplateIf the user haven't initialize the project. - If the user has already initialized the project, proceed to the next step.
2) Initialize Gradle and plugin metadata
Before you begin, ask the user the following questions:
- What is the name of the plugin?
- What is the package name used by the plugin?
- What is the plugin author(s) name?
- What is the website of the plugin?
- What is the allay-api version used for the plugin?
After the user answers the above questions, initialize the project metadata with the collected information.
Before that, determine whether the user is using JavaPluginTemplate, which is implemented by determining whether
the current project package name is org.allaymc.javaplugintemplate.
Case 1: If the project is using JavaPluginTemplate:
- Rename package name from
org.allaymc.javaplugintemplateto the user provided group name. - Set the project name in
settings.gradle.ktsto the user provided plugin name. - Update
build.gradle.kts, solve all the TODOs inside.
Case 2: If the project is not using JavaPluginTemplate:
- Update
group,version(should start with0.1.0), anddescriptioninbuild.gradle.kts. - Keep package of the plugin main class aligned with the value of
groupinbuild.gradle.kts. - Set the Java toolchain to 21 unless the user needs a different version in
build.gradle.kts. - If the project is using
AllayGradleplugin, update theallay {}block inbuild.gradle.kts:- Set
apito the target Allay API version. - Set
plugin.entranceto the fully qualified main class (or short suffix as used in the template). - Update
authorsandwebsite.
- Set
- If the project does not use the
AllayGradleplugin, createplugin.jsonper the docs inreferences/Allay/docs/tutorials/create-your-first-plugin.md.
3) Implement the plugin entry class
- Create the plugin entry class using plugin name and let it extends
org.allaymc.api.plugin.Plugin - Override lifecycle methods in the entry class as needed:
onLoadwhich is called before world loading.onEnablewhich is called after world loading.onDisablewhich is called when the server is stopping.
- If reloadable behavior is required, override
isReloadableand implementreload.
4) Implement the plugin logic
Understand the user's needs and read the documentation and code marked in the reference map below as needed.
5) Build and run
- Use
./gradlew runServerfor local testing when the AllayGradle plugin is configured. - Use
./gradlew shadowJarto build the shaded jar.
Reference map
- Allay documents (read on demand):
references/Allay/docs/tutorialsandreferences/Allay/docs/advanced. - JavaPluginTemplate:
references/JavaPluginTemplate - Allay project source:
references/Allay- Allay API:
references/Allay/api/src/main/java/org/allaymc/api - Allay Server (API Implementation):
references/Allay/server/src/main/java/org/allaymc/server
- Allay API:
- AllayGradle project source:
references/AllayGradle- Usage Guide:
references/AllayGradle/README.md
- Usage Guide:
Notes
- AllayMC is multithreaded, and special attention should be paid to multithreaded security issues when writing project code.
- AllayMC currently does not use annotations such as JSpecify's
@Nullable/@NonNull. Unless a method's Javadoc explicitly states that a parameter or return value may be null, treat it as non-null. - Don't overwrite defensive code, such as checking if an object that is explicitly marked as impossible null is null. Produce readable, easy-to-maintain code.
04 同仓库更多 Skills
serpmaven
Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.
revnu-landing-page-audit
Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: "audit my landing page", "why isn't this page converting", "review my homepage", "my ads get clicks but no signups", "people bounce from the pricing page", "CRO review", "improve conversion rate", "is my hero section clear", "roast my landing page", "rewrite my headline", "what's wrong with this page", "landing page feedback", "make the signup page convert better". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.
revnu-growth-context
Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents/revnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says "set up our marketing context", "who is our ideal customer", "write our ICP", "describe the product for marketing", "positioning doc", "what's our brand voice", "remember this about our customers", "log what we tried", "what have we learned from marketing", "we changed pricing, update the context", "update our growth notes", "summarize the business for the agent", "import my product-marketing.md", "start a growth doc", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.
revnu-get-listed
Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: "best X" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says "get us listed", "which directories should we submit to", "how do we get into best-of lists", "why does ChatGPT recommend competitors and not us", "get mentioned in AI answers", "submit to awesome lists", "get on G2", "where are our competitors listed", "pitch listicle authors", "find backlink opportunities", "launch directories", "get into roundups", "Product Hunt alternatives", "where should we be listed", "get cited by Perplexity". Never submits, pays or posts without a yes. Works without a Revnu account.
revnu-ai-readiness-audit
Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks "is my site ready for AI search", "audit my site for AI answers", "AEO audit", "GEO audit", "why doesn't ChatGPT quote our pricing", "make our pages citable by AI", "do I need llms.txt", "does schema help with ChatGPT", "check our structured data", "is our content visible without JavaScript", "AI SEO audit", "optimize our homepage for AI answers", "LLM SEO check", "why does AI get our product wrong", "fix our site for AI Overviews". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.
proxy-troubleshooting
Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.