[PR] Update to Spigot API 1.17.1
[+] Update to Spigot API 1.17.1
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
@@ -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<out String>): 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") ?: ""
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user