|
74 | 74 | import org.maxgamer.quickshop.database.MySQLCore; |
75 | 75 | import org.maxgamer.quickshop.database.SQLiteCore; |
76 | 76 | 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; |
80 | 77 | import org.maxgamer.quickshop.integration.SimpleIntegrationManager; |
81 | 78 | import org.maxgamer.quickshop.integration.worldguard.WorldGuardIntegration; |
82 | 79 | import org.maxgamer.quickshop.listener.BlockListener; |
@@ -564,51 +561,6 @@ public boolean loadEcon() { |
564 | 561 | case UNKNOWN: |
565 | 562 | setupBootError(new BootError(this.getLogger(), "Can't load the Economy provider, invaild value in config.yml."), true); |
566 | 563 | 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."); |
612 | 564 | break; |
613 | 565 | default: |
614 | 566 | Util.debugLog("No any economy provider selected."); |
|
0 commit comments