From ebdabeb190daf125e1f7427c882a57baef6c3666 Mon Sep 17 00:00:00 2001 From: "Daniel V." Date: Wed, 23 Oct 2024 17:32:42 -0400 Subject: [PATCH] Bump to 2.7, remove Component requirement. --- pom.xml | 8 +------- .../java/net/milkbowl/vault2/economy/Economy.java | 11 ++++++----- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 08b75d5..4aa7318 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 net.milkbowl.vault VaultUnlockedAPI - 2.6 + 2.7 VaultUnlockedAPI @@ -89,12 +89,6 @@ 24.0.0 compile - - net.kyori - adventure-text-minimessage - 4.17.0 - provided - diff --git a/src/main/java/net/milkbowl/vault2/economy/Economy.java b/src/main/java/net/milkbowl/vault2/economy/Economy.java index 6e4c5e9..dbdf114 100644 --- a/src/main/java/net/milkbowl/vault2/economy/Economy.java +++ b/src/main/java/net/milkbowl/vault2/economy/Economy.java @@ -16,7 +16,6 @@ package net.milkbowl.vault2.economy; -import net.kyori.adventure.text.Component; import net.milkbowl.vault2.economy.EconomyResponse.ResponseType; import org.jetbrains.annotations.NotNull; @@ -91,6 +90,7 @@ public interface Economy { * @deprecated Use {@link #format(String, BigDecimal)} instead. */ @NotNull + @Deprecated String format(BigDecimal amount); /** @@ -100,10 +100,10 @@ public interface Economy { * @param pluginName The name of the plugin that is calling the method. * @param amount to format. * - * @return Human-readable {@link Component text component} describing amount, ie 5 Dollars or 5.55 Pounds. + * @return Human-readable String describing amount, ie 5 Dollars or 5.55 Pounds. */ @NotNull - Component format(final String pluginName, BigDecimal amount); + String format(final String pluginName, BigDecimal amount); /** * Plugins use this method to format a given BigDecimal amount into a human-readable @@ -116,6 +116,7 @@ public interface Economy { * @deprecated Use {@link #format(String, BigDecimal, String)} instead. */ @NotNull + @Deprecated String format(BigDecimal amount, final String currency); /** @@ -126,10 +127,10 @@ public interface Economy { * @param amount to format. * @param currency the currency to use for the format. * - * @return Human-readable {@link Component text component} describing amount, ie 5 Dollars or 5.55 Pounds. + * @return Human-readable String describing amount, ie 5 Dollars or 5.55 Pounds. */ @NotNull - Component format(final String pluginName, BigDecimal amount, final String currency); + String format(final String pluginName, BigDecimal amount, final String currency); /** * Returns true if a currency with the specified name exists.