[F] Ensure EssentialsX backwards compatibility
This commit is contained in:
@@ -54,7 +54,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
val yml = YamlConfiguration.loadConfiguration(it)
|
val yml = YamlConfiguration.loadConfiguration(it)
|
||||||
val name = yml.getString("last-account-name") ?: ""
|
val name = yml.getString("last-account-name") ?: yml.getString("lastAccountName") ?: ""
|
||||||
val logoutDate = yml.getLong("timestamps.logout")
|
val logoutDate = yml.getLong("timestamps.logout")
|
||||||
val money = yml.getString("money") ?: ""
|
val money = yml.getString("money") ?: ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user