[PR] Update to Spigot API 1.17.1

[+] Update to Spigot API 1.17.1
This commit is contained in:
Hykilpikonna
2021-07-10 07:57:57 -04:00
committed by GitHub
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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 {
+2 -2
View File
@@ -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") ?: ""
+2 -2
View File
@@ -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]