【文件属性】:
文件名称:EasySpigotAPI:一个易于使用Spigot API的库
文件大小:83KB
文件格式:ZIP
更新时间:2021-02-11 01:26:07
Kotlin
EasySpigotAPI
一个易于使用Spigot API的库。
サンプルコード
イベント定义をラムダ式で书くことができます。
没有EasySpigotAPI
@EventHandler
fun on ( e : PlayerJoinEvent ) {
e.joinMessage = " >> Join ${e.player.displayName} "
}
使用EasySpigotAPI
event < PlayerJoinEvent> {
it.joinMessage = " >> Join ${it.player.displayName} "
}
その他
引进
EasySpigotAPIをプラグインとして导入する
EasySpigotAPIを导入をラグインに加えてEasySpigotAPIもサーバーのプラグインに追加する必要があります。
build.grad
【文件预览】:
EasySpigotAPI-master
----api()
--------build.gradle.kts(2KB)
--------src()
----build.gradle.kts(1KB)
----.gitignore(23B)
----sample()
--------build.gradle.kts(355B)
--------README.md(2KB)
--------util-uuid()
--------event-register()
----gradlew(6KB)
----LICENSE(11KB)
----README.md(3KB)
----gradlew.bat(3KB)
----gradle.properties(26B)
----gradle()
--------wrapper()
----settings.gradle.kts(124B)