Skip to content

Commit

Permalink
fixed economy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
poyrazinan committed Nov 17, 2023
1 parent 50cb2b9 commit 30fc879
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>xyz.geik.farmer</groupId>
<artifactId>Farmer</artifactId>
<version>v6-b003</version>
<version>v6-b004</version>

<properties>
<shaded.package>org.cas.osd.platform.ciam.shaded</shaded.package>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/xyz/geik/farmer/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ private void registerModules() {
* and loads integration class of it.
*/
public static void registerIntegrations() {
if (!Main.getConfigFile().contains("settings.economy")) {
Main.setEconomyIntegrations(new Vault());
return;
}
if (Main.getConfigFile().getString("settings.economy").equalsIgnoreCase("vault")
|| Bukkit.getPluginManager().isPluginEnabled("Vault")
&& Main.getConfigFile().getString("settings.economy").equalsIgnoreCase("auto"))
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Farmer
author: Geik, Amowny, WaterArchery, mehmet-27
main: xyz.geik.farmer.Main
version: v6-b003
version: v6-b004
api-version: 1.13
softdepend: [PlaceholderAPI, Vault, RoyaleEconomy, PlayerPoints, GrinGotts, ElementalGems, ASkyBlock, BentoBox, SuperiorSkyblock2, GriefPrevention, FabledSkyBlock]
loadbefore: [AutoPickup, WildStacker]
Expand Down

0 comments on commit 30fc879

Please sign in to comment.