jpskill.com
🛠️ 開発・MCP コミュニティ

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本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
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
🪟 Windows (PowerShell)
$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. 1. 下の青いボタンを押して allaymc-plugin-dev.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → allaymc-plugin-dev フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

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.ktsgroupdescription、および version を更新します。
  • group は、プラグインのメインクラスのパッケージと一致するようにしてください。
  • ユーザーが別のバージョンを必要としない限り、Java ツールチェーンをテンプレートと一貫性のあるものに保ちます。
  • allay {} ブロック内:
    • api をターゲットの Allay API バージョンに設定します。
    • plugin.entrance を、完全修飾されたメインクラス(またはテンプレートで使用されている短いサフィックス)に設定します。
    • authorswebsite を更新します。
  • プロジェクトが 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 を参照してください
  • AllayGradle: references/AllayGradle
    • Gradle プラグインのソースと構成パターン
  • Allay のソースと API: references/Allay
    • API エントリポイント: api/src/main/java/org/allaymc/api
    • チュートリアル: docs/tutorials/*.md

出力に関する期待

  • 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/JavaPluginTemplate for new plugins.
  • If updating an existing plugin, diff its build.gradle.kts and plugin main class against the template.

2) Align Gradle and plugin metadata

  • Update group, description, and version in build.gradle.kts.
  • Keep group aligned 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 api to the target Allay API version.
    • Set plugin.entrance to the fully qualified main class (or short suffix as used in the template).
    • Update authors and website.
  • If the project does not use the AllayGradle plugin, create or update plugin.json per the docs in references/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:
    • onLoad for lightweight setup.
    • onEnable for registrations and runtime wiring.
    • onDisable for cleanup.
  • Keep the class name and plugin.entrance/plugin.json entrance consistent.
  • If reloadable behavior is required, override isReloadable and implement reload.
  • 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.md and references/Allay/docs/tutorials/item-api.md.

5) Build and run

  • Use ./gradlew runServer for local testing when the AllayGradle plugin is configured.
  • Use ./gradlew shadowJar to build the shaded jar.
  • Copy the jar from build/libs/*-shaded.jar into the Allay server plugins directory.

6) Troubleshoot (only when asked)

  • Plugin not loading: verify plugin.entrance (or plugin.json entrance), api/api_version, and the jar location.
  • API mismatch: update the Gradle allay.api version to a valid Allay API release.
  • Class not found: confirm the package name matches group and the compiled class name.

Reference map (load on demand)

  • Template project: references/JavaPluginTemplate
    • build.gradle.kts for Gradle + AllayGradle conventions
    • README.md for template initialization steps
    • src/main/java/.../JavaPluginTemplate.java for 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

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` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。