Skip to content

Commit

Permalink
prod: remove Reserve integration
Browse files Browse the repository at this point in the history
- Reserve has been archived by the owner on Feb 20, 2023
  • Loading branch information
nikosgram committed Jun 9, 2023
1 parent 9032e2c commit ef11d9d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1,103 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ Features
* Direct account-to-account transfers commands
* Optional transaction taxes
* Fractional currency values (fixed decimal digits)
* [Vault](https://www.spigotmc.org/resources/vault.34315/)
and [Reserve](https://www.spigotmc.org/resources/reserve.50739/) integration
* [Vault](https://www.spigotmc.org/resources/vault.34315/) integration

Usage
-----
Expand Down
9 changes: 1 addition & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@
<version>2.11.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.tnemc</groupId>
<artifactId>Reserve</artifactId>
<version>0.1.5.3-SNAPSHOT-4</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
Expand Down Expand Up @@ -180,7 +173,7 @@
<url>https://jitpack.io</url>
</repository>
<repository>
<id>reserve-repo</id>
<id>vault-repo</id>
<url>https://repo.codemc.io/repository/maven-public/</url>
</repository>
<repository>
Expand Down
18 changes: 2 additions & 16 deletions src/main/java/org/gestern/gringotts/Gringotts.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.gestern.gringotts.api.dependency.Dependency;
import org.gestern.gringotts.api.dependency.DependencyProvider;
import org.gestern.gringotts.api.impl.GringottsEco;
import org.gestern.gringotts.api.impl.ReserveConnector;
import org.gestern.gringotts.api.impl.VaultConnector;
import org.gestern.gringotts.commands.GringottsExecutor;
import org.gestern.gringotts.commands.MoneyAdminExecutor;
Expand Down Expand Up @@ -119,12 +118,11 @@ public void onEnable() {
accounting = new Accounting();
eco = new GringottsEco();

if (!(this.dependencies.hasDependency("vault") ||
this.dependencies.hasDependency("reserve"))) {
if (!(this.dependencies.hasDependency("vault"))) {
Bukkit.getPluginManager().disablePlugin(this);

getLogger().warning(
"Neither Vault or Reserve was found. Other plugins may not be able to access Gringotts accounts."
"Vault was found. Other plugins may not be able to access Gringotts accounts."
);

return;
Expand All @@ -146,12 +144,6 @@ public void onEnable() {
getLogger().info("Registered Vault interface.");
}

if (this.dependencies.hasDependency("reserve")) {
ReserveConnector.registerProviderSafely();

getLogger().info("Registered Reserve interface.");
}

registerMetrics();
} catch (GringottsStorageException | GringottsConfigurationException e) {
getLogger().severe(e.getMessage());
Expand Down Expand Up @@ -195,12 +187,6 @@ public void onLoad() {
"net.milkbowl.vault.Vault",
"1.7"
);
this.registerGenericDependency(
"reserve",
"Reserve",
"net.tnemc.core.Reserve",
"0.1.5.0"
);

this.dependencies.onLoad();
}
Expand Down
Loading

0 comments on commit ef11d9d

Please sign in to comment.