This repository was archived by the owner on Feb 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
api/src/main/kotlin/com/github/syari/spigot/api/nms Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ repositories {
262
262
}
263
263
264
264
dependencies {
265
- api('com.github.sya-ri:EasySpigotAPI:2.2.4 ') {
265
+ api('com.github.sya-ri:EasySpigotAPI:2.3.0 ') {
266
266
exclude group: 'org.spigotmc', module: 'spigot-api'
267
267
}
268
268
}
@@ -276,7 +276,7 @@ repositories {
276
276
}
277
277
278
278
dependencies {
279
- api(" com.github.sya-ri:EasySpigotAPI:2.2.4 " ) {
279
+ api(" com.github.sya-ri:EasySpigotAPI:2.3.0 " ) {
280
280
exclude(group = " org.spigotmc" , module = " spigot-api" )
281
281
}
282
282
}
@@ -302,7 +302,7 @@ configurations {
302
302
}
303
303
304
304
dependencies {
305
- shadowApi('com.github.sya-ri:EasySpigotAPI:2.2.4 ') {
305
+ shadowApi('com.github.sya-ri:EasySpigotAPI:2.3.0 ') {
306
306
exclude group: 'org.spigotmc', module: 'spigot-api'
307
307
}
308
308
}
@@ -327,7 +327,7 @@ repositories {
327
327
}
328
328
329
329
dependencies {
330
- shadowApi(" com.github.sya-ri:EasySpigotAPI:2.2.4 " ) {
330
+ shadowApi(" com.github.sya-ri:EasySpigotAPI:2.3.0 " ) {
331
331
exclude(group = " org.spigotmc" , module = " spigot-api" )
332
332
}
333
333
}
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ import org.bukkit.Bukkit
8
8
*/
9
9
val NMS_VERSION = Bukkit .getServer()::class .java.`package`.name.substring(23 )
10
10
11
+ /* *
12
+ * サーバーのメジャーバージョン。1.16.5 であれば 16 になる。
13
+ * @since 2.3.0
14
+ */
15
+ val SERVER_VERSION = NMS_VERSION .split(' _' )[1 ].toInt()
16
+
11
17
/* *
12
18
* NMS のクラスを取得する。`%s` が [NMS_VERSION] に置き換わる。
13
19
* ```
You can’t perform that action at this time.
0 commit comments