From 94e9b47f028725ef35ee54deaa4bfb35744f4743 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 1 Feb 2022 10:08:21 +0000 Subject: [PATCH] Renaming --- .../main/java/com/willfp/eco/core/data/ProfileHandler.java | 6 +++--- .../willfp/eco/internal/spigot/data/EcoProfileHandler.kt | 2 +- .../willfp/eco/internal/spigot/data/storage/ProfileSaver.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/data/ProfileHandler.java b/eco-api/src/main/java/com/willfp/eco/core/data/ProfileHandler.java index 2db157ae..a24787c5 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/data/ProfileHandler.java +++ b/eco-api/src/main/java/com/willfp/eco/core/data/ProfileHandler.java @@ -48,7 +48,7 @@ public interface ProfileHandler { */ @Deprecated default void savePlayer(@NotNull UUID uuid) { - this.saveKeysForPlayer(uuid, PersistentDataKey.values()); + this.saveKeysFor(uuid, PersistentDataKey.values()); } /** @@ -59,8 +59,8 @@ public interface ProfileHandler { * @param uuid The uuid. * @param keys The keys. */ - void saveKeysForPlayer(@NotNull UUID uuid, - @NotNull Set> keys); + void saveKeysFor(@NotNull UUID uuid, + @NotNull Set> keys); /** * Save all player data. diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/EcoProfileHandler.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/EcoProfileHandler.kt index da7203b9..7283f376 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/EcoProfileHandler.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/EcoProfileHandler.kt @@ -43,7 +43,7 @@ class EcoProfileHandler( return loadGenericProfile(serverProfileUUID) as ServerProfile } - override fun saveKeysForPlayer(uuid: UUID, keys: Set>) { + override fun saveKeysFor(uuid: UUID, keys: Set>) { val profile = PlayerProfile.load(uuid) for (key in keys) { diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt index beb29fe0..a9d8404a 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/ProfileSaver.kt @@ -8,7 +8,7 @@ class ProfileSaver(plugin: EcoPlugin) { init { plugin.scheduler.runTimer({ for ((uuid, set) in EcoProfile.CHANGE_MAP) { - Eco.getHandler().profileHandler.saveKeysForPlayer(uuid, set) + Eco.getHandler().profileHandler.saveKeysFor(uuid, set) } EcoProfile.CHANGE_MAP.clear() }, 1, 1)