diff --git a/src/main/kotlin/com/mairwunnx/randomteleport/managers/ConfigurationManager.kt b/src/main/kotlin/com/mairwunnx/randomteleport/managers/ConfigurationManager.kt index 2fff0ae..975b1a3 100644 --- a/src/main/kotlin/com/mairwunnx/randomteleport/managers/ConfigurationManager.kt +++ b/src/main/kotlin/com/mairwunnx/randomteleport/managers/ConfigurationManager.kt @@ -14,10 +14,17 @@ object ConfigurationManager { private var configuration = ConfigurationModel() private val logger = LogManager.getLogger() - @UseExperimental(UnstableDefault::class) + @OptIn(UnstableDefault::class) private val jsonInstance = Json( JsonConfiguration( - strictMode = false, allowStructuredMapKeys = true, prettyPrint = true + encodeDefaults = true, + ignoreUnknownKeys = true, + isLenient = false, + serializeSpecialFloatingPointValues = false, + allowStructuredMapKeys = true, + prettyPrint = true, + unquotedPrint = false, + useArrayPolymorphism = false ) ) diff --git a/src/main/kotlin/com/mairwunnx/randomteleport/managers/TeleportRollbackManager.kt b/src/main/kotlin/com/mairwunnx/randomteleport/managers/TeleportRollbackManager.kt index 5044091..6f39724 100644 --- a/src/main/kotlin/com/mairwunnx/randomteleport/managers/TeleportRollbackManager.kt +++ b/src/main/kotlin/com/mairwunnx/randomteleport/managers/TeleportRollbackManager.kt @@ -58,7 +58,7 @@ object TeleportRollbackManager { * Removes all expired timers for position * rollback. */ - @UseExperimental(ExperimentalTime::class) + @OptIn(ExperimentalTime::class) private fun purgeAll() { logger.debug("Purging all expired location rollback entries") lastPosition.rowMap().keys.removeAll {