Skip to content

Commit

Permalink
Bump to 2.7, remove Component requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Oct 23, 2024
1 parent a6107cb commit ebdabeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 1 addition & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultUnlockedAPI</artifactId>
<version>2.6</version>
<version>2.7</version>


<name>VaultUnlockedAPI</name>
Expand Down Expand Up @@ -89,12 +89,6 @@
<version>24.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<version>4.17.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/net/milkbowl/vault2/economy/Economy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -91,6 +90,7 @@ public interface Economy {
* @deprecated Use {@link #format(String, BigDecimal)} instead.
*/
@NotNull
@Deprecated
String format(BigDecimal amount);

/**
Expand All @@ -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
Expand All @@ -116,6 +116,7 @@ public interface Economy {
* @deprecated Use {@link #format(String, BigDecimal, String)} instead.
*/
@NotNull
@Deprecated
String format(BigDecimal amount, final String currency);

/**
Expand All @@ -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.
Expand Down

0 comments on commit ebdabeb

Please sign in to comment.