allaymc-plugin-dev
JavaなどのJVM言語でAllayMCプラグインを開発、更新、トラブルシューティングし、新規プラグイン作成、APIバージョン移行、コマンド・イベント・タスク・設定の連携、Gradle設定など、AllayMCプラグイン開発全般を支援するSkill。
📜 元の英語説明(参考)
Build, update, and troubleshoot AllayMC plugins in Java or other JVM languages. Use when creating a new AllayMC plugin, migrating an existing plugin to a new Allay API version, wiring commands/events/tasks/config, or setting up Gradle and plugin metadata (plugin.json or AllayGradle plugin block).
🇯🇵 日本人クリエイター向け解説
JavaなどのJVM言語でAllayMCプラグインを開発、更新、トラブルシューティングし、新規プラグイン作成、APIバージョン移行、コマンド・イベント・タスク・設定の連携、Gradle設定など、AllayMCプラグイン開発全般を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o allaymc-plugin-dev.zip https://jpskill.com/download/17134.zip && unzip -o allaymc-plugin-dev.zip && rm allaymc-plugin-dev.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17134.zip -OutFile "$d\allaymc-plugin-dev.zip"; Expand-Archive "$d\allaymc-plugin-dev.zip" -DestinationPath $d -Force; ri "$d\allaymc-plugin-dev.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
allaymc-plugin-dev.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
allaymc-plugin-devフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
AllayMC プラグイン開発
概要
公式の Java テンプレートと Allay API を使用して AllayMC プラグインを作成します。ワークフローを、バンドルされたリファレンスからの最新の Allay API およびドキュメントと整合させ、ユーザーから特に指定がない限り、テンプレートの Java 21 ツールチェーンをデフォルトとします。
Null-safety ポリシー
AllayMC は現在、JSpecify の @Nullable / @NonNull などのアノテーションを使用していません。メソッドの Javadoc で、パラメータまたは戻り値が null になる可能性があると明示的に述べられていない限り、null ではないものとして扱ってください。
ワークフロー
1) 開始点の選択
- 新しいプラグインの場合は、
references/JavaPluginTemplateにある公式テンプレートを推奨します。 - 既存のプラグインを更新する場合は、その
build.gradle.ktsとプラグインのメインクラスをテンプレートと比較してください。
2) Gradle とプラグインのメタデータの整合
build.gradle.ktsのgroup、description、およびversionを更新します。groupは、プラグインのメインクラスのパッケージと一致するようにしてください。- ユーザーが別のバージョンを必要としない限り、Java ツールチェーンをテンプレートと一貫性のあるものに保ちます。
allay {}ブロック内:apiをターゲットの Allay API バージョンに設定します。plugin.entranceを、完全修飾されたメインクラス(またはテンプレートで使用されている短いサフィックス)に設定します。authorsとwebsiteを更新します。
- プロジェクトが AllayGradle プラグインを使用していない場合は、
references/Allay/docs/tutorials/create-your-first-plugin.mdのドキュメントに従ってplugin.jsonを作成または更新します。
3) プラグインのエントリクラスの実装
org.allaymc.api.plugin.Pluginを拡張します。- 必要に応じてライフサイクルメソッドをオーバーライドします。
- 軽量なセットアップには
onLoadを使用します。 - 登録とランタイムの配線には
onEnableを使用します。 - クリーンアップには
onDisableを使用します。
- 軽量なセットアップには
- クラス名と
plugin.entrance/plugin.jsonのエントランスを一致させます。 - リロード可能な動作が必要な場合は、
isReloadableをオーバーライドし、reloadを実装します。 references/Allay/api/src/main/java/org/allaymc/api/plugin/Plugin.javaのベースクラスを参照してください。
4) コア機能の追加(必要なもののみを選択)
- コマンド:
references/Allay/docs/tutorials/register-commands.mdに従ってください。 - イベント:
references/Allay/docs/tutorials/register-event-listeners.mdに従ってください。 - タスク:
references/Allay/docs/tutorials/schedule-tasks.mdに従ってください。 - 設定:
references/Allay/docs/tutorials/use-config.mdに従ってください。 - 権限:
references/Allay/docs/tutorials/use-permission.mdに従ってください。 - i18n:
references/Allay/docs/tutorials/use-i18n.mdに従ってください。 - フォーム/UI:
references/Allay/docs/tutorials/use-forms.mdに従ってください。 - データ:
references/Allay/docs/tutorials/persistent-data-container.mdに従ってください。 - ブロック/アイテム:
references/Allay/docs/tutorials/block-api.mdおよびreferences/Allay/docs/tutorials/item-api.mdに従ってください。
5) ビルドと実行
- AllayGradle プラグインが構成されている場合は、ローカルテストに
./gradlew runServerを使用します。 - シャドウ JAR をビルドするには、
./gradlew shadowJarを使用します。 build/libs/*-shaded.jarから JAR を Allay サーバーのpluginsディレクトリにコピーします。
6) トラブルシューティング(要求された場合のみ)
- プラグインがロードされない:
plugin.entrance(またはplugin.jsonのエントランス)、api/api_version、および JAR の場所を確認します。 - API の不一致: Gradle の
allay.apiバージョンを有効な Allay API リリースに更新します。 - クラスが見つからない: パッケージ名が
groupおよびコンパイルされたクラス名と一致することを確認します。
リファレンスマップ(オンデマンドでロード)
- テンプレートプロジェクト:
references/JavaPluginTemplate- Gradle + AllayGradle の規約については
build.gradle.ktsを参照してください - テンプレートの初期化手順については
README.mdを参照してください - ライフサイクル構造については
src/main/java/.../JavaPluginTemplate.javaを参照してください
- Gradle + AllayGradle の規約については
- AllayGradle:
references/AllayGradle- Gradle プラグインのソースと構成パターン
- Allay のソースと API:
references/Allay- API エントリポイント:
api/src/main/java/org/allaymc/api - チュートリアル:
docs/tutorials/*.md
- API エントリポイント:
出力に関する期待
- Gradle の構成、プラグインのメタデータ、およびメインクラスを同期させてください。
- 要求された Allay API バージョンをターゲットにし、それを Gradle のメタデータに反映させてください。
- ユーザーが明示的にカスタム構造を希望しない限り、テンプレートの規約を優先してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
AllayMC Plugin Development
Overview
Create AllayMC plugins using the official Java template and the Allay API. Keep the workflow aligned with the latest Allay API and docs from the bundled references, and default to the template's Java 21 toolchain unless the user requests otherwise.
Null-safety policy
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.
Workflow
1) Pick the starting point
- Prefer the official template at
references/JavaPluginTemplatefor new plugins. - If updating an existing plugin, diff its
build.gradle.ktsand plugin main class against the template.
2) Align Gradle and plugin metadata
- Update
group,description, andversioninbuild.gradle.kts. - Keep
groupaligned with the package of the plugin main class. - Keep the Java toolchain consistent with the template unless the user needs a different version.
- In the
allay {}block:- 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 AllayGradle plugin, create or update
plugin.jsonper the docs inreferences/Allay/docs/tutorials/create-your-first-plugin.md.
3) Implement the plugin entry class
- Extend
org.allaymc.api.plugin.Plugin. - Override lifecycle methods as needed:
onLoadfor lightweight setup.onEnablefor registrations and runtime wiring.onDisablefor cleanup.
- Keep the class name and
plugin.entrance/plugin.jsonentrance consistent. - If reloadable behavior is required, override
isReloadableand implementreload. - Reference the base class in
references/Allay/api/src/main/java/org/allaymc/api/plugin/Plugin.java.
4) Add core features (choose only what is needed)
- Commands: follow
references/Allay/docs/tutorials/register-commands.md. - Events: follow
references/Allay/docs/tutorials/register-event-listeners.md. - Tasks: follow
references/Allay/docs/tutorials/schedule-tasks.md. - Config: follow
references/Allay/docs/tutorials/use-config.md. - Permissions: follow
references/Allay/docs/tutorials/use-permission.md. - i18n: follow
references/Allay/docs/tutorials/use-i18n.md. - Forms/UI: follow
references/Allay/docs/tutorials/use-forms.md. - Data: follow
references/Allay/docs/tutorials/persistent-data-container.md. - Blocks/items: follow
references/Allay/docs/tutorials/block-api.mdandreferences/Allay/docs/tutorials/item-api.md.
5) Build and run
- Use
./gradlew runServerfor local testing when the AllayGradle plugin is configured. - Use
./gradlew shadowJarto build the shaded jar. - Copy the jar from
build/libs/*-shaded.jarinto the Allay serverpluginsdirectory.
6) Troubleshoot (only when asked)
- Plugin not loading: verify
plugin.entrance(orplugin.jsonentrance),api/api_version, and the jar location. - API mismatch: update the Gradle
allay.apiversion to a valid Allay API release. - Class not found: confirm the package name matches
groupand the compiled class name.
Reference map (load on demand)
- Template project:
references/JavaPluginTemplatebuild.gradle.ktsfor Gradle + AllayGradle conventionsREADME.mdfor template initialization stepssrc/main/java/.../JavaPluginTemplate.javafor lifecycle structure
- AllayGradle:
references/AllayGradle- Gradle plugin sources and configuration patterns
- Allay source and API:
references/Allay- API entry points:
api/src/main/java/org/allaymc/api - Tutorials:
docs/tutorials/*.md
- API entry points:
Output expectations
- Keep Gradle config, plugin metadata, and main class in sync.
- Target the requested Allay API version and reflect it in Gradle metadata.
- Prefer the template conventions unless the user explicitly wants a custom structure.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (4,387 bytes)
- 📎 LICENSE (26,526 bytes)
- 📎 README.md (1,409 bytes)