{"id":17527,"date":"2025-04-19T00:03:06","date_gmt":"2025-04-18T16:03:06","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/17527.html"},"modified":"2025-04-19T00:03:06","modified_gmt":"2025-04-18T16:03:06","slug":"%e6%88%91%e7%9a%84%e4%b8%96%e7%95%8cbukkit%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91-%e7%ac%ac%e4%ba%94%e7%ab%a0-%e6%90%ad%e5%bb%ba%e5%9f%ba%e4%ba%8espigot%e6%a0%b8%e5%bf%83%e7%9a%84%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/17527.html","title":{"rendered":"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1\u3010\u81ea\u5b9a\u4e49\u547d\u4ee4\u3011(spogit\u6838\u5fc3)<\/li>\n<li>\u524d\u8a00<\/li>\n<li>\u4e00\u3001\u81ea\u5b9a\u4e49\u547d\u4ee4<\/li>\n<li>\n<ul>\n<li>1. \u521b\u5efa\u4e00\u4e2a\u63d2\u4ef6\u9879\u76ee<\/li>\n<li>2.\u914d\u7f6e\u547d\u4ee4<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u81ea\u5b9a\u4e49\u547d\u4ee4\u6267\u884c\u5668\u5bf9\u8c61<\/li>\n<li>\n<ul>\n<li>1. CommandExecutor \u63a5\u53e3<\/li>\n<li>\n<ul>\n<li>1.1 onCommand \u65b9\u6cd5<\/li>\n<li>1.2 \u4ee3\u7801\u5982\u4e0b<\/li>\n<\/ul>\n<\/li>\n<li>2.\u81ea\u5b9a\u4e49\u6267\u884c\u5668<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u6ce8\u518c\u547d\u4ee4<\/li>\n<li>\n<ul>\n<li>1.\u5728\u63d2\u4ef6\u4e2d\u6ce8\u518c\u547d\u4ee4\u5bf9\u8c61<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u63d2\u4ef6\u6253\u5305<\/li>\n<li>\u4e94\u3001\u8fd0\u884c\u63d2\u4ef6<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<hr \/>\n<h2>\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1\u3010\u81ea\u5b9a\u4e49\u547d\u4ee4\u3011(spogit\u6838\u5fc3)<\/h2>\n<h2>\u524d\u8a00<\/h2>\n<ul>\n<li>\u672c\u7ae0\u5b9e\u73b0\u5b8c\u6210\u3010\u81ea\u5b9a\u4e49\u547d\u4ee4-\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251\u3011<\/li>\n<li>\u57fa\u4e8eSpigot\u6838\u5fc3\u7684\u63d2\u4ef6\u5f00\u53d1<\/li>\n<li>\u524d\u7f6e\u5f00\u53d1\u5de5\u5177&#xff1a;IDEA<\/li>\n<li>JDK\u73af\u5883-JKD-17<\/li>\n<li>\u6784\u5efa\u5de5\u5177&#xff1a;maven<\/li>\n<li>\u5fc5\u5907idea\u63d2\u4ef6&#xff1a;Minecraft Development<\/li>\n<li>\u670d\u52a1\u5668\u6838\u5fc3: Spigot-1.20.jar<\/li>\n<li>mc\u5ba2\u6237\u7aef<\/li>\n<li>\u5c0f\u90e8\u5206\u5185\u5bb9\u6765\u81eaAI\u5927\u6a21\u578b&#xff0c;\u5982\u9700\u6df1\u5165&#xff0c;\u8bf7\u8054\u7cfb\u535a\u4e3b\u6216\u81ea\u884c\u4e86\u89e3<\/li>\n<li>\u6301\u7eed\u66f4\u65b0\u4e2d\u2026<\/li>\n<\/ul>\n<h2>\u4e00\u3001\u81ea\u5b9a\u4e49\u547d\u4ee4<\/h2>\n<p>\u901a\u8fc7bukkit\u63d2\u4ef6&#xff0c;\u6ce8\u518c\u4e00\u4e2a\u547d\u4ee4<\/p>\n<h3>1. \u521b\u5efa\u4e00\u4e2a\u63d2\u4ef6\u9879\u76ee<\/h3>\n<p>\u6253\u5f00idea &#8211; new project \u9009\u62e9Minecraft-\u586b\u5199\u9879\u76ee\u4fe1\u606f&#xff0c;\u6211\u662f\u5728\u539f\u6709\u7684\u9879\u76ee\u4e0a\u65b0\u589e\u4e86\u4e00\u4e2a\u65b0\u7684module&#xff0c;\u5b9e\u9645\u662f\u4e00\u6837\u7684 \u6ca1\u6709Minecraft\u9009\u9879\u7684\u9700\u8981\u4e0b\u8f7didea\u63d2\u4ef6 Minecraft Development&#xff0c;\u53ef\u4ee5\u770b\u4e0b\u524d\u9762\u7684\u7ae0\u8282 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160302-680277b6ece96.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u521b\u5efa\u5b8c\u6210\u540e\u9879\u76ee\u7ed3\u6784\u5982\u4e0b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160304-680277b8055db.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u67e5\u770b\u4e3b\u7c7b\u4fe1\u606f onEnable \u63d2\u4ef6\u5f00\u542f\u65f6\u6267\u884c&#xff08;\u6ce8\u518c\u4e8b\u4ef6\u76d1\u542c\u5668\u3001\u6ce8\u518c\u547d\u4ee4\u3001\u521d\u59cb\u5316\u6570\u636e\u7b49&#xff09; onDisable \u63d2\u4ef6\u5173\u95ed\u65f6\u6267\u884c&#xff08;\u5173\u95ed\u8d44\u6e90\u3001\u5904\u7406\u7ed3\u675f\u6570\u636e\u7b49&#xff09;<\/p>\n<p><span class=\"token keyword\">package<\/span> <span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>shunxin<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>plugin<span class=\"token punctuation\">.<\/span>java<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">JavaPlugin<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">public<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">GenerateDiamondSword<\/span> <span class=\"token keyword\">extends<\/span> <span class=\"token class-name\">JavaPlugin<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token annotation punctuation\">&#064;Override<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">onEnable<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ Plugin startup logic<\/span><\/p>\n<p>    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token annotation punctuation\">&#064;Override<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">onDisable<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ Plugin shutdown logic<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u67e5\u770bplugin.yml\u6587\u4ef6<\/p>\n<p><span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> GenerateDiamondSword<br \/>\n<span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;1.0&#039;<\/span><br \/>\n<span class=\"token key atrule\">main<\/span><span class=\"token punctuation\">:<\/span> com.shunxin.GenerateDiamondSword<br \/>\n<span class=\"token key atrule\">api-version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;1.20&#039;<\/span><br \/>\n<span class=\"token key atrule\">authors<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span> shuxnin <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token key atrule\">description<\/span><span class=\"token punctuation\">:<\/span> \u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251<\/p>\n<h3>2.\u914d\u7f6e\u547d\u4ee4<\/h3>\n<p>\u5728plugin.yml\u6587\u4ef6\u4e2d\u5b9a\u4e49\u547d\u4ee4\u914d\u7f6e\u3002 \u914d\u7f6e\u5982\u4e0b&#xff0c;\u547d\u4ee4\u7684\u540d\u79f0\u4e3a&#xff1a;generateDiamondSword &#xff0c;\u73a9\u5bb6\u9700\u8981\u8f93\u5165 \/generateDiamondSword<\/p>\n<p><span class=\"token key atrule\">name<\/span><span class=\"token punctuation\">:<\/span> GenerateDiamondSword<br \/>\n<span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;1.0&#039;<\/span><br \/>\n<span class=\"token key atrule\">main<\/span><span class=\"token punctuation\">:<\/span> com.shunxin.GenerateDiamondSword<br \/>\n<span class=\"token key atrule\">api-version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;1.20&#039;<\/span><br \/>\n<span class=\"token key atrule\">authors<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span> shuxnin <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token key atrule\">description<\/span><span class=\"token punctuation\">:<\/span> \u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251<br \/>\n<span class=\"token key atrule\">commands<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">generateDiamondSword<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">description<\/span><span class=\"token punctuation\">:<\/span> \u751f\u6210\u4e00\u4e2a\u94bb\u77f3\u5251<br \/>\n    <span class=\"token key atrule\">usage<\/span><span class=\"token punctuation\">:<\/span> \/generateDiamondSword<\/p>\n<h2>\u4e8c\u3001\u81ea\u5b9a\u4e49\u547d\u4ee4\u6267\u884c\u5668\u5bf9\u8c61<\/h2>\n<p>\u5728bukkit\u63d2\u4ef6\u5f00\u53d1\u4e2d&#xff0c;\u81ea\u5b9a\u4e49\u4e00\u4e2a\u547d\u4ee4&#xff0c;\u9700\u8981\u5b9e\u73b0 CommandExecutor \u63a5\u53e3&#xff0c;\u5e76\u91cd\u5199\u63a5\u53e3\u7684 onCommand\u65b9\u6cd5<\/p>\n<h3>1. CommandExecutor \u63a5\u53e3<\/h3>\n<p>ommandExecutor \u662f\u4e00\u4e2a\u63a5\u53e3&#xff0c;\u5c5e\u4e8e org.bukkit.command \u5305&#xff0c;\u7528\u4e8e\u5904\u7406\u73a9\u5bb6\u8f93\u5165\u7684\u547d\u4ee4\u3002\u5f53\u63d2\u4ef6\u9700\u8981\u54cd\u5e94\u7279\u5b9a\u7684\u547d\u4ee4\u65f6&#xff0c;\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u7c7b\u5b9e\u73b0\u8fd9\u4e2a\u63a5\u53e3\u3002 CommandExecutor \u63a5\u53e3\u4e2d\u5305\u542b\u4e00\u4e2a\u6838\u5fc3\u65b9\u6cd5 onCommand&#xff0c;\u8be5\u65b9\u6cd5\u4f1a\u5728\u73a9\u5bb6\u6267\u884c\u547d\u4ee4\u65f6\u88ab\u8c03\u7528<\/p>\n<h4>1.1 onCommand \u65b9\u6cd5<\/h4>\n<p>onCommand&#xff1a;\u8fd9\u4e2a\u65b9\u6cd5\u5165\u53c2\u5305\u542b\u56db\u4e2a\u53c2\u6570&#xff0c;\u8fd4\u56de\u503c\u4e3a\u5e03\u5c14\u503c\u7c7b\u578b&#xff0c;\u4ee3\u8868\u6210\u529f\u6216\u5931\u8d25<\/p>\n<ul>\n<li>CommandSender sender&#xff1a;\u547d\u4ee4\u7684\u53d1\u9001\u8005&#xff0c;\u53ef\u4ee5\u662f\u73a9\u5bb6\u3001\u63a7\u5236\u53f0\u6216\u5176\u4ed6<\/li>\n<li>Command command&#xff1a;\u88ab\u6267\u884c\u7684\u547d\u4ee4\u5bf9\u8c61<\/li>\n<li>String label&#xff1a;\u4f7f\u7528\u7684\u547d\u4ee4\u522b\u540d<\/li>\n<li>String[] args&#xff1a;\u4f20\u9012\u7684\u547d\u4ee4\u53c2\u6570&#xff0c;\u4e0d\u5305\u542b\u547d\u4ee4\u4e3b\u4f53<\/li>\n<\/ul>\n<h4>1.2 \u4ee3\u7801\u5982\u4e0b<\/h4>\n<p>    <span class=\"token annotation punctuation\">&#064;Override<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">boolean<\/span> <span class=\"token function\">onCommand<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">CommandSender<\/span> sender<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Command<\/span> command<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">String<\/span> label<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>        <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<h3>2.\u81ea\u5b9a\u4e49\u6267\u884c\u5668<\/h3>\n<p>\u5728\u4e3b\u7c7b\u76ee\u5f55\u4e0b\u5efa\u7acb\u4e00\u4e2a\u5305 \u547d\u540d\u4e3a commands &#xff0c;\u521b\u5efa\u7c7bGenerateDiamondSwordCms\u7b26\u5408Java\u89c4\u8303\u5373\u53ef <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160304-680277b822e0c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> GenerateDiamondSwordCms\u7c7b\u9700\u8981\u5b9e\u73b0CommandExecutor\u63a5\u53e3\u5e76\u91cd\u5199onCommand\u65b9\u6cd5 \u4ee3\u7801\u5982\u4e0b<\/p>\n<p><span class=\"token keyword\">package<\/span> <span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>shunxin<span class=\"token punctuation\">.<\/span>commands<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Material<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>command<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Command<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>command<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">CommandExecutor<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>command<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">CommandSender<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>entity<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Player<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>inventory<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">ItemStack<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">org<span class=\"token punctuation\">.<\/span>bukkit<span class=\"token punctuation\">.<\/span>inventory<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">PlayerInventory<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/**<br \/>\n * &#064;version 1.0<br \/>\n * &#064;ClassName GenerateDiamondSwordCms<br \/>\n * &#064;Author huitailang<br \/>\n * &#064;Description \u751f\u6210\u4e00\u4e2a\u94bb\u77f3\u5251 -\u547d\u4ee4<br \/>\n *\/<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">GenerateDiamondSwordCms<\/span> <span class=\"token keyword\">implements<\/span> <span class=\"token class-name\">CommandExecutor<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token annotation punctuation\">&#064;Override<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">boolean<\/span> <span class=\"token function\">onCommand<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">CommandSender<\/span> commandSender<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Command<\/span> command<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">String<\/span> label<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u5224\u65ad\u547d\u4ee4\u548c\u53d1\u9001\u5bf9\u8c61<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>command<span class=\"token punctuation\">.<\/span><span class=\"token function\">getName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">equalsIgnoreCase<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;generateDiamondSword&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                <span class=\"token operator\">&amp;&amp;<\/span> commandSender <span class=\"token keyword\">instanceof<\/span> <span class=\"token class-name\">Player<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            commandSender<span class=\"token punctuation\">.<\/span><span class=\"token function\">sendMessage<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6b63\u5728\u751f\u4ea7\u4e00\u628a\u94bb\u77f3\u5251&#8230;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token comment\">\/\/ \u521b\u5efa\u94bb\u77f3\u5251<\/span><br \/>\n            <span class=\"token function\">_generate<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Player<\/span><span class=\"token punctuation\">)<\/span> commandSender<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>            <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">_generate<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Player<\/span> player<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u5b9a\u4e49\u94bb\u77f3\u5251<\/span><br \/>\n        <span class=\"token class-name\">ItemStack<\/span> sword <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">ItemStack<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">new<\/span> <span class=\"token class-name\">ItemStack<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Material<\/span><span class=\"token punctuation\">.<\/span><span class=\"token constant\">DIAMOND_SWORD<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u83b7\u53d6\u73a9\u5bb6\u7269\u54c1\u680f<\/span><br \/>\n        <span class=\"token class-name\">PlayerInventory<\/span> inventory <span class=\"token operator\">&#061;<\/span> player<span class=\"token punctuation\">.<\/span><span class=\"token function\">getInventory<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        inventory<span class=\"token punctuation\">.<\/span><span class=\"token function\">addItem<\/span><span class=\"token punctuation\">(<\/span>sword<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u63d0\u793a\u73a9\u5bb6<\/span><br \/>\n        player<span class=\"token punctuation\">.<\/span><span class=\"token function\">sendMessage<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u4f60\u83b7\u5f97\u4e86\u4e00\u628a\u94bb\u77f3\u5251&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h2>\u4e09\u3001\u6ce8\u518c\u547d\u4ee4<\/h2>\n<h3>1.\u5728\u63d2\u4ef6\u4e2d\u6ce8\u518c\u547d\u4ee4\u5bf9\u8c61<\/h3>\n<p>\u5728\u63d2\u4ef6\u4e3b\u7c7b\u4e2d\u7684 onEnable\u65b9\u6cd5\u4e2d\u6ce8\u518c&#xff0c;\u589e\u52a0\u4e00\u4e2a\u63d0\u793a<\/p>\n<p>    <span class=\"token annotation punctuation\">&#064;Override<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">onEnable<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u8bbe\u7f6e\u63d2\u4ef6\u5f00\u542f\u63d0\u793a<\/span><br \/>\n        <span class=\"token class-name\">CommandSender<\/span> sender <span class=\"token operator\">&#061;<\/span> <span class=\"token class-name\">Bukkit<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">getConsoleSender<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        sender<span class=\"token punctuation\">.<\/span><span class=\"token function\">sendMessage<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;generateDiamondSword \u547d\u4ee4\u5df2\u90e8\u7f72&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/ Plugin startup logic<\/span><br \/>\n        <span class=\"token function\">getCommand<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;generateDiamondSword&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">setExecutor<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">new<\/span> <span class=\"token class-name\">GenerateDiamondSwordCms<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token punctuation\">}<\/span><\/p>\n<h2>\u56db\u3001\u63d2\u4ef6\u6253\u5305<\/h2>\n<p>\u4f7f\u7528maven\u8fdb\u884c\u6253\u5305&#xff0c;\u6253\u5305\u540e\u751f\u6210target\u76ee\u5f55&#xff0c;\u8be6\u7ec6\u64cd\u4f5c\u53ca\u4ecb\u7ecd\u524d\u7ae0\u8282\u6709&#xff0c;\u4e0d\u505a\u591a\u590d\u8ff0 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160304-680277b856f13.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e94\u3001\u8fd0\u884c\u63d2\u4ef6<\/h2>\n<p>\u5c06\u6253\u5305\u540e\u7684GenerateDiamondSword-1.0.jar \u6587\u4ef6\u653e\u5230\u670d\u52a1\u5668\u4e2d\u7684plugins\u6587\u4ef6\u5939\u4e2d&#xff0c;\u542f\u52a8\u670d\u52a1\u5668 \u8f93\u5165\u547d\u4ee4&#xff1a; generateDiamondSword <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160304-680277b899940.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u672c\u7ae0\u5b8c<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u63d0\u793a&#xff1a;\u672c\u7ae0\u5c0f\u7ed3&#xff1a;\u6301\u7eed\u66f4\u65b0\u4e2d&#8230;&#8230; \u3010\u6587\u7ae0\u5b9e\u73b0\u603b\u7ed3\u3011 \u5b9e\u73b0\u81ea\u5b9a\u4e49\u547d\u4ee4\u5e76\u5b8c\u6210\u6307\u5b9a\u6548\u679c \u5982\u679c\u5bf9\u60a8\u6709\u5e2e\u52a9&#xff0c;\u522b\u5fd8\u4e86\u6536\u85cf\u70b9\u8d5e\u8bc4\u8bba\u7559\u8a00&#xff0c;\u6709\u95ee\u9898\u8bc4\u8bba\u533a\u56de\u7b54&#xff0c;\u540e\u7eed\u7ee7\u7eed\u66f4\u65b0\u63d2\u4ef6\u76f8\u5173\u6587\u7ae0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf30\u6b21\u3002\u672c\u7ae0\u5b9e\u73b0\u5b8c\u6210\u3010\u81ea\u5b9a\u4e49\u547d\u4ee4\u3011\u57fa\u4e8eSpigot\u6838\u5fc3\u7684\u63d2\u4ef6\u5f00\u53d1\u547d\u4ee4\u5b9e\u73b0-\u901a\u8fc7\u73a9\u5bb6\u8f93\u5165\u6307\u5b9a\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251\u5e76\u53d1\u9001\u63d0\u793a\u4fe1\u606f\u5b8c\u6210\u6307\u5b9a\u547d\u4ee4\u6548\u679c\u53ca\u8fc7\u7a0b\u5206\u6790_bukkit<\/p>\n","protected":false},"author":2,"featured_media":17522,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,393,1317,149,1316,43,1222,44],"topic":[],"class_list":{"0":"post-17527","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-java","9":"tag-maven","10":"tag-mc","11":"tag-windows","13":"tag-43","14":"tag-1222","15":"tag-44"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/17527.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf30\u6b21\u3002\u672c\u7ae0\u5b9e\u73b0\u5b8c\u6210\u3010\u81ea\u5b9a\u4e49\u547d\u4ee4\u3011\u57fa\u4e8eSpigot\u6838\u5fc3\u7684\u63d2\u4ef6\u5f00\u53d1\u547d\u4ee4\u5b9e\u73b0-\u901a\u8fc7\u73a9\u5bb6\u8f93\u5165\u6307\u5b9a\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251\u5e76\u53d1\u9001\u63d0\u793a\u4fe1\u606f\u5b8c\u6210\u6307\u5b9a\u547d\u4ee4\u6548\u679c\u53ca\u8fc7\u7a0b\u5206\u6790_bukkit\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/17527.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T16:03:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160302-680277b6ece96.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17527.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/17527.html\",\"name\":\"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T16:03:06+00:00\",\"dateModified\":\"2025-04-18T16:03:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/17527.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/17527.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17527.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/17527.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf30\u6b21\u3002\u672c\u7ae0\u5b9e\u73b0\u5b8c\u6210\u3010\u81ea\u5b9a\u4e49\u547d\u4ee4\u3011\u57fa\u4e8eSpigot\u6838\u5fc3\u7684\u63d2\u4ef6\u5f00\u53d1\u547d\u4ee4\u5b9e\u73b0-\u901a\u8fc7\u73a9\u5bb6\u8f93\u5165\u6307\u5b9a\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251\u5e76\u53d1\u9001\u63d0\u793a\u4fe1\u606f\u5b8c\u6210\u6307\u5b9a\u547d\u4ee4\u6548\u679c\u53ca\u8fc7\u7a0b\u5206\u6790_bukkit","og_url":"https:\/\/www.wsisp.com\/helps\/17527.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T16:03:06+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160302-680277b6ece96.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/17527.html","url":"https:\/\/www.wsisp.com\/helps\/17527.html","name":"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T16:03:06+00:00","dateModified":"2025-04-18T16:03:06+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/17527.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/17527.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/17527.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6211\u7684\u4e16\u754cBukkit\u63d2\u4ef6\u5f00\u53d1-\u7b2c\u4e94\u7ae0-\u642d\u5efa\u57fa\u4e8espigot\u6838\u5fc3\u7684\u670d\u52a1\u5668-\u81ea\u5b9a\u4e49\u547d\u4ee4-\u901a\u8fc7\u547d\u4ee4\u83b7\u53d6\u4e00\u628a\u94bb\u77f3\u5251"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=17527"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17527\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/17522"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=17527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=17527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=17527"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=17527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}