diff --git a/build.gradle b/build.gradle index c0cfe72..11416af 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'org.hydev.kt' -version = '1.0-SNAPSHOT' +version = '1.1-SNAPSHOT' repositories { mavenCentral() @@ -16,7 +16,7 @@ repositories { } 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 { diff --git a/src/main/kotlin/org/hydev/mc/ActiveList.kt b/src/main/kotlin/org/hydev/mc/ActiveList.kt index 22e3bdf..92d51a2 100644 --- a/src/main/kotlin/org/hydev/mc/ActiveList.kt +++ b/src/main/kotlin/org/hydev/mc/ActiveList.kt @@ -25,7 +25,7 @@ class ActiveList : JavaPlugin(), CommandExecutor { super.onEnable() - getCommand("activelist").executor = this + getCommand("activelist")!!.setExecutor(this) } override fun onCommand(sender: CommandSender, command: Command, label: String, _args: Array): Boolean @@ -54,7 +54,7 @@ class ActiveList : JavaPlugin(), CommandExecutor try { val yml = YamlConfiguration.loadConfiguration(it) - val name = yml.getString("lastAccountName") + val name = yml.getString("last-account-name") ?: yml.getString("lastAccountName") ?: "" val logoutDate = yml.getLong("timestamps.logout") val money = yml.getString("money") ?: "" diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index cff6dbc..453e422 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -3,8 +3,8 @@ description: A plugin to see active players and last login dates author: Hykilpikonna main: org.hydev.mc.ActiveList -version: 1.0 -api-version: 1.14 +version: 1.1 +api-version: 1.17 load: POSTWORLD depend: [Essentials]