Skip to content

Commit 95d48a8

Browse files
committed
remove 経済系依存コード
1 parent f8e8c8a commit 95d48a8

File tree

8 files changed

+11
-976
lines changed

8 files changed

+11
-976
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,5 +844,12 @@
844844
<version>0.1.5.4</version>
845845
<scope>provided</scope>
846846
</dependency>
847+
<dependency>
848+
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
849+
<groupId>com.fasterxml.jackson.core</groupId>
850+
<artifactId>jackson-annotations</artifactId>
851+
<version>2.16.0</version>
852+
</dependency>
853+
847854
</dependencies>
848855
</project>

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@
7474
import org.maxgamer.quickshop.database.MySQLCore;
7575
import org.maxgamer.quickshop.database.SQLiteCore;
7676
import org.maxgamer.quickshop.database.SimpleDatabaseHelper;
77-
import org.maxgamer.quickshop.economy.Economy_GemsEconomy;
78-
import org.maxgamer.quickshop.economy.Economy_TNE;
79-
import org.maxgamer.quickshop.economy.Economy_Vault;
8077
import org.maxgamer.quickshop.integration.SimpleIntegrationManager;
8178
import org.maxgamer.quickshop.integration.worldguard.WorldGuardIntegration;
8279
import org.maxgamer.quickshop.listener.BlockListener;
@@ -564,51 +561,6 @@ public boolean loadEcon() {
564561
case UNKNOWN:
565562
setupBootError(new BootError(this.getLogger(), "Can't load the Economy provider, invaild value in config.yml."), true);
566563
return false;
567-
case VAULT:
568-
economy = new Economy_Vault(this);
569-
Util.debugLog("Now using the Vault economy system.");
570-
if (getConfig().getDouble("tax", 0.0d) > 0) {
571-
try {
572-
String taxAccount = getConfig().getString("tax-account", "tax");
573-
if (!taxAccount.isEmpty()) {
574-
OfflinePlayer tax;
575-
if (Util.isUUID(taxAccount)) {
576-
tax = PlayerFinder.findOfflinePlayerByUUID(UUID.fromString(taxAccount));
577-
} else {
578-
tax = PlayerFinder.findOfflinePlayerByUUID(PlayerFinder.findUUIDByName(Objects.requireNonNull(taxAccount), true, true));
579-
}
580-
Economy_Vault vault = (Economy_Vault) economy;
581-
if (vault.isValid()) {
582-
if (!Objects.requireNonNull(vault.getVault()).hasAccount(tax)) {
583-
try {
584-
Util.debugLog("Tax account not exists! Creating...");
585-
getLogger().warning("QuickShop detected tax account not exists, we're trying to create one. If you see any errors, please change tax-account in config.yml to server owner in-game username");
586-
if (vault.getVault().createPlayerAccount(tax)) {
587-
getLogger().info("Tax account created.");
588-
} else {
589-
getLogger().warning("Cannot to create tax-account, please change tax-account in config.yml to server owner in-game username");
590-
}
591-
} catch (Exception ignored) {
592-
}
593-
if (!vault.getVault().hasAccount(tax)) {
594-
getLogger().warning("Tax account's player never played this server before and failed to create one, that may cause server lagg or economy system error, you should change that name. But if this warning not cause any issues, you can safety ignore this.");
595-
}
596-
}
597-
598-
}
599-
}
600-
} catch (Exception ignored) {
601-
Util.debugLog("Failed to fix account issue.");
602-
}
603-
}
604-
break;
605-
case GEMS_ECONOMY:
606-
economy = new Economy_GemsEconomy(this);
607-
Util.debugLog("Now using the GemsEconomy economy system.");
608-
break;
609-
case TNE:
610-
economy = new Economy_TNE(this);
611-
Util.debugLog("Now using the TNE economy system.");
612564
break;
613565
default:
614566
Util.debugLog("No any economy provider selected.");

src/main/java/org/maxgamer/quickshop/economy/Economy_GemsEconomy.java

Lines changed: 0 additions & 250 deletions
This file was deleted.

0 commit comments

Comments
 (0)