-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
206 lines (197 loc) · 9.39 KB
/
index.html
File metadata and controls
206 lines (197 loc) · 9.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>Bukkit 项目生成器 (Gradle) - Minecraft I/O Developers</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/5.15.4/css/all.min.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<section class="wrapper style1 fade-up">
<div class="inner">
<h1>Bukkit 项目生成器</h1>
<div class="bottom-07em">
<p>使用图形化向导,快速生成基于 <a href="https://github.com/MrXiaoM/PluginBase" target="_blank">MrXiaoM/PluginBase</a> 的 Gradle 项目。PluginBase 致力于服务端插件的多 Minecraft 版本兼容。</p>
<p>该站点<b>不支持</b>大部分移动端浏览器,请使用桌面端 Chrome、Edge、FireFox 等浏览器。</p>
</div>
<div class="split style1 bottom-07em">
<section>
<h2>Step 1. 插件属性</h2>
<div class="fields bottom-07em">
<div class="field half">
<label for="plugin-name">插件名</label>
<input type="text" name="plugin-name" id="plugin-name" value="ExamplePlugin" placeholder="插件名" />
<label for="plugin-package">代码包名</label>
<input type="text" name="plugin-package" id="plugin-package" value="top.mrxiaom.example" placeholder="代码包名" />
<label for="plugin-api-version">API 版本</label>
<input type="text" name="plugin-api-version" id="plugin-api-version" value="1.13" placeholder="API 版本" />
</div>
<div class="field half">
<label for="plugin-version">插件版本</label>
<input type="text" name="plugin-version" id="plugin-version" value="1.0.0" placeholder="插件名" />
<label for="plugin-mainclass">主类名</label>
<input type="text" name="plugin-mainclass" id="plugin-mainclass" value="ExamplePlugin" placeholder="主类名" />
<label for="plugin-authors">作者列表 (逗号分隔)</label>
<input type="text" name="plugin-authors" id="plugin-authors" value="MrXiaoM" placeholder="作者列表" />
</div>
</div>
<div class="fields bottom-07em">
<div class="field half">
<ul class="air">
<li>
<input type="checkbox" id="plugin-modules-gui-actions" name="plugin-modules-gui-actions" checked>
<label for="plugin-modules-gui-actions">启用 GUI+Actions 模块</label>
</li>
<li>
<input type="checkbox" id="plugin-modules-l10n" name="plugin-modules-l10n" checked>
<label for="plugin-modules-l10n">启用 L10n 模块</label>
</li>
<li>
<input type="checkbox" id="plugin-modules-commands" name="plugin-modules-commands">
<label for="plugin-modules-commands">启用 Commands 模块</label>
</li>
</ul>
</div>
<div class="field half">
<ul class="air">
<li>
<input type="checkbox" id="plugin-modules-paper" name="plugin-modules-paper" checked>
<label for="plugin-modules-paper">启用 Paper 模块</label>
</li>
<li>
<input type="checkbox" id="plugin-modules-misc" name="plugin-modules-misc">
<label for="plugin-modules-misc">启用 Misc 模块</label>
</li>
<li>
<input type="checkbox" id="plugin-modules-temporary-data" name="plugin-modules-temporary-data">
<label for="plugin-modules-temporary-data">启用 Temporary Data 模块</label>
</li>
</ul>
</div>
</div>
<div class="fields bottom-07em">
<div class="field half">
<ul class="air">
<li>
<input type="checkbox" id="plugin-settings-bungeecord" name="plugin-settings-bungeecord">
<label for="plugin-settings-bungeecord">BungeeCord 插件频道支持</label>
</li>
<li>
<input type="checkbox" id="plugin-settings-database" name="plugin-settings-database">
<label for="plugin-settings-database">MySQL/SQLite 数据库支持</label>
</li>
<li>
<input type="checkbox" id="plugin-settings-ignore" name="plugin-settings-ignore" checked>
<label for="plugin-settings-ignore">自动注册时忽略 shadow 目标</label>
</li>
</ul>
</div>
<div class="field half">
<ul class="air">
<li>
<input type="checkbox" id="plugin-settings-vault" name="plugin-settings-vault">
<label for="plugin-settings-vault">Vault 经济支持</label>
</li>
<li>
<input type="checkbox" id="plugin-settings-db-reload" name="plugin-settings-db-reload">
<label for="plugin-settings-db-reload">重载配置时重连数据库</label>
</li>
</ul>
</div>
</div>
<h2>Step 2. 注册命令 (可选)</h2>
<div class="fields bottom-0">
<div class="field half">
<input type="checkbox" id="command-register" name="command-register" checked>
<label for="command-register"><b>注册命令名</b></label>
<input type="text" name="command-name" id="command-name" value="example" placeholder="命令名" />
</div>
<div class="field half">
<input type="checkbox" id="command-alias-enable" name="command-alias-enable">
<label for="command-alias-enable"><b>命令别名 (逗号分隔)</b></label>
<input type="text" name="command-alias" id="command-alias" value="e" placeholder="命令别名" disabled />
</div>
</div>
<div class="field">
<label for="command-description">命令描述</label>
<input type="text" name="command-description" id="command-description" value="The main command of ExamplePlugin" placeholder="命令描述" />
</div>
</section>
<section>
<h2>Step 3. 使用依赖</h2>
<div class="fields bottom-07em">
<div class="field">
<label for="depend-minecraft">游戏版本</label>
<input type="text" name="depend-minecraft" id="depend-minecraft" value="1.20" placeholder="游戏版本" />
<input type="checkbox" id="depend-paper" name="depend-paper">
<label for="depend-paper">使用 Paper API (对 Spigot 兼容性稍差)</label>
<label for="depend-shadow-target">shadow 打包目标包</label>
<input type="text" name="depend-shadow-target" id="depend-shadow-target" value="top.mrxiaom.example.libs" placeholder="shadow 打包目标包" />
<ul class="air">
<li>
<input type="checkbox" id="depend-adventure" name="depend-adventure" checked>
<label for="depend-adventure">Adventure 富文本支持库</label>
</li>
<li>
<input type="checkbox" id="depend-nbtapi" name="depend-nbtapi">
<label for="depend-nbtapi">item-nbt-api 全版本NBT支持库</label>
</li>
<li>
<input type="checkbox" id="depend-hikaricp" name="depend-hikaricp">
<label for="depend-hikaricp">HikariCP 数据库连接池</label>
</li>
<li>
<input type="checkbox" id="depend-resolver-lite" name="depend-resolver-lite" checked>
<label for="depend-resolver-lite">LibrariesResolver-Lite 依赖处理器</label>
</li>
</ul>
</div>
</div>
<h2>Step 4. 额外依赖插件 (可选)</h2>
<div class="fields bottom-07em">
<div class="field half">
<input type="checkbox" id="other-mythic" name="other-mythic">
<label for="other-mythic">MythicMobs 4 + 5</label>
</div>
<div class="field half">
<input type="checkbox" id="other-playerpoints" name="other-playerpoints">
<label for="other-playerpoints">PlayerPoints</label>
</div>
</div>
<h2>Step 5. 开始开发</h2>
<ul class="actions bottom-07em">
<li><button id="$start" class="button primary"><i class="fa fa-file-download"></i> <span id="$startText">生成并下载项目</span></button></li>
<li><a href="https://github.com/MrXiaoM/PluginBase/tree/main/docs" target="_blank" class="button"><i class="fa fa-map-marked-alt"></i> 查阅文档</a></li>
</ul>
<p>
注意: 请在「项目结构」将 SDK 版本设为 <code>Java 17</code>,在「设置」->「构建工具」->「Gradle」将「Gradle JVM」设为 <code>项目SDK</code>。<br>
要这么做是因为部分依赖的引用要求 Java 17,别担心,编译后是支持到 Java 8 的。
</p>
</section>
</div>
</div>
</section>
</div>
<footer id="footer" class="wrapper style1-alt">
<div class="inner">
<ul class="menu">
<li>© <a href="https://www.mrxiaom.top/" target="_blank">MrXiaoM</a> 保留所有权利.</li><li>该网页由 <a href="http://html5up.net" target="_blank">HTML5 UP</a> 设计</li>
</ul>
</div>
</footer>
<script src="https://unpkg.com/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://unpkg.com/jquery.scrollex@0.2.1/jquery.scrollex.min.js"></script>
<script src="https://unpkg.com/web-streams-polyfill@2.0.2/dist/polyfill.min.js"></script>
<script src="assets/js/StreamSaver.min.js"></script>
<script src="assets/js/zip-stream.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>