From 714952bc454570a4132d9c19a12fd719eb3f6950 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 29 Apr 2023 15:47:42 +0100 Subject: [PATCH] PR Cleanup --- .../kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt | 4 +--- .../spigot/integrations/price/PriceFactoryPlayerPoints.kt | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt index 55bf8b36..384a9d8c 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt @@ -358,9 +358,7 @@ abstract class EcoSpigotPlugin : EcoPlugin() { Prices.registerPriceFactory(PriceFactoryUltraEconomy(currency)) } }, - IntegrationLoader("PlayerPoints") { - Prices.registerPriceFactory(PriceFactoryPlayerPoints()) - }, + IntegrationLoader("PlayerPoints") { Prices.registerPriceFactory(PriceFactoryPlayerPoints()) }, // Placeholder IntegrationLoader("PlaceholderAPI") { PlaceholderManager.addIntegration(PlaceholderIntegrationPAPI()) }, diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/price/PriceFactoryPlayerPoints.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/price/PriceFactoryPlayerPoints.kt index 613f673d..ec2ece47 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/price/PriceFactoryPlayerPoints.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/price/PriceFactoryPlayerPoints.kt @@ -6,7 +6,7 @@ import com.willfp.eco.core.price.Price import com.willfp.eco.core.price.PriceFactory import org.black_ixx.playerpoints.PlayerPoints import org.bukkit.entity.Player -import java.util.* +import java.util.UUID import kotlin.math.roundToInt class PriceFactoryPlayerPoints : PriceFactory { @@ -49,6 +49,5 @@ class PriceFactoryPlayerPoints : PriceFactory { override fun setMultiplier(player: Player, multiplier: Double) { multipliers[player.uniqueId] = multiplier } - } -} \ No newline at end of file +}