{"id":17887435,"url":"https://github.com/necnion8/itemrecall","last_synced_at":"2025-03-22T17:31:07.297Z","repository":{"id":258191211,"uuid":"869390550","full_name":"Necnion8/ItemRecall","owner":"Necnion8","description":"回収対応になったアイテムを削除、または置換するプラグイン for Bukkit","archived":false,"fork":false,"pushed_at":"2024-11-03T10:11:38.000Z","size":111,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-18T13:46:46.661Z","etag":null,"topics":["itemadder","minecraft-plugin","mmoitems","mythicmobs","spigot-plugin"],"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/Necnion8.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,"publiccode":null,"codemeta":null}},"created_at":"2024-10-08T08:07:25.000Z","updated_at":"2024-11-03T10:11:41.000Z","dependencies_parsed_at":"2024-10-18T00:35:25.608Z","dependency_job_id":null,"html_url":"https://github.com/Necnion8/ItemRecall","commit_stats":null,"previous_names":["necnion8/itemrecall"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FItemRecall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FItemRecall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FItemRecall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Necnion8%2FItemRecall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Necnion8","download_url":"https://codeload.github.com/Necnion8/ItemRecall/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244994975,"owners_count":20544255,"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":["itemadder","minecraft-plugin","mmoitems","mythicmobs","spigot-plugin"],"created_at":"2024-10-28T13:28:03.463Z","updated_at":"2025-03-22T17:31:07.284Z","avatar_url":"https://github.com/Necnion8.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ItemRecall\n回収対応になったアイテムを削除、または置換するプラグイン\u003cbr\u003e\n※ このプラグインはプレイヤーインベントリ上のアイテムのみ処理します\n\n#### 実行するタイミングとチェック範囲\n- プラグインロード時 -\u003e インベントリ全体\n- プレイヤー参加時 -\u003e インベントリ全体\n- 拾うor投げたアイテム\n- ホットバーのアイテム選択を切り替えた時\n- インベントリを閉じた時 (対象アイテムに触れた場合のみ) -\u003e インベントリ全体\n\n## 前提\n- Spigot 1.13 以上 (またはその派生)\n- Java 17 以上\n- 連携プラグイン (オプション)\n  - MythicMobs (v5.6.2で確認)\n  - MMOItems (v6.9.4で確認)\n  - ItemsAdder (v4.0.2-beta-release-11で確認)\n\n## コマンドと権限\n- アイテムを処理しない権限\n\u003e 権限: `itemrecall.bypass`\n\u003cbr\u003e\n\n- 管理者用権限 - (bypass権限を含む)\n\u003e 権限: `itemrecall.admin` (default: OP)\n\n## 設定\n```yml\n# デバッグログをコンソールに出力する\nenable-debug: false\n\n# 置換するアイテムの設定\n#   アイテムの指定\n#     \"(タイプ):(アイテム)\"\n#     タイプにはプラグイン名が入り、アイテムにはアイテムを識別するIDや名前を指定します。\n#     対応しているタイプは mythicmobs, mmoitems, itemsadder, bukkit-values です。\n#   置換する新しいアイテムを指定する new 項目を省略することで削除のみ実行できます。\nitems:\n  - old: \"mythicmobs:OldItemTypeName\" # 回収対象のアイテム\n    new: \"mythicmobs:NewItemTypeName\"  # 置換する新しいアイテム (省略可)\n  - \"mmoitems:ITEM_TYPE:ITEM_ID\"  # 回収対象のアイテム。削除のみ (短縮)\n  - \"itemsadder:namespace:itemid\"\n```\n\n#### アイテム設定例\n```yml\nitems:\n  # MythicMobs DiamondKingSword を MythicMobs IronKingSword に置換する\n  - old: \"mythicmobs:DiamondKingSword\"\n    new: \"mythicmobs:IronKingSword\"\n    \n  # MMOItems SWORDタイプ AMETHYST_SWORD を削除する (置き換えない)\n  - old: \"mmoitems:SWORD:AMETHYST_SWORD\"\n\n  # ItemsAdder my_items:mysword を削除する (置き換えない)\n  - old: \"itemsadder:my_items:mysword\"\n\n  # AdvancedEnchantments Black Scroll を削除する (置き換えない)\n  - old: \"bukkit-values:advancedenchantments:blackscroll\"\n```\n(注) 置換後のアイテム(new)が指定されているにも関わらず、存在しないアイテムまたは作成できない場合は置換元のアイテムを削除しません。\n\n## API\n\u003e [ItemRecallEvent](src%2Fmain%2Fjava%2Fcom%2Fgmail%2Fnecnionch%2Fmyplugin%2Fitemrecall%2Fbukkit%2Fevent%2FItemRecallEvent.java) (cancellable)\u003cbr\u003e\n\u003e プラグインがアイテムを削除または置換する時に実行されるイベント\n\u003e ```java\n\u003e @EventHandler\n\u003e public void onItemRecall(ItemRecallEvent event) {\n\u003e   // 元アイテムと置換する新しいアイテムの参照\n\u003e   @NotNull ItemStack oldItemStack = event.getOldItemStack();  \n\u003e   @Nullable ItemStack newItemStack = event.getNewItemStack();\n\u003e \n\u003e   // 置換するアイテムの再設定\n\u003e   event.setNewItemStack(newItemStack);\n\u003e }\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecnion8%2Fitemrecall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnecnion8%2Fitemrecall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecnion8%2Fitemrecall/lists"}