[+] Update to Spigot API 1.17.1
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'org.hydev.kt'
|
group = 'org.hydev.kt'
|
||||||
version = '1.0-SNAPSHOT'
|
version = '1.1-SNAPSHOT'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -16,7 +16,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
|
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT' // The Spigot API with no shadowing. Requires the OSS repo.
|
||||||
}
|
}
|
||||||
|
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
|
|||||||
{
|
{
|
||||||
super.onEnable()
|
super.onEnable()
|
||||||
|
|
||||||
getCommand("activelist").executor = this
|
getCommand("activelist")!!.setExecutor(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCommand(sender: CommandSender, command: Command, label: String, _args: Array<out String>): Boolean
|
override fun onCommand(sender: CommandSender, command: Command, label: String, _args: Array<out String>): Boolean
|
||||||
@@ -54,7 +54,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
val yml = YamlConfiguration.loadConfiguration(it)
|
val yml = YamlConfiguration.loadConfiguration(it)
|
||||||
val name = yml.getString("lastAccountName")
|
val name = yml.getString("last-account-name") ?: ""
|
||||||
val logoutDate = yml.getLong("timestamps.logout")
|
val logoutDate = yml.getLong("timestamps.logout")
|
||||||
val money = yml.getString("money") ?: ""
|
val money = yml.getString("money") ?: ""
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ author: Hykilpikonna
|
|||||||
|
|
||||||
main: org.hydev.mc.ActiveList
|
main: org.hydev.mc.ActiveList
|
||||||
version: 1.0
|
version: 1.0
|
||||||
api-version: 1.14
|
api-version: 1.17
|
||||||
|
|
||||||
load: POSTWORLD
|
load: POSTWORLD
|
||||||
depend: [Essentials]
|
depend: [Essentials]
|
||||||
|
|||||||
Reference in New Issue
Block a user