Skip to content

Commit

Permalink
Minor fix related to JobPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
7sat committed Feb 25, 2023
1 parent a8a217b commit d116bc0
Show file tree
Hide file tree
Showing 3 changed files with 12 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>me.sat7</groupId>
<artifactId>DynamicShop</artifactId>
<version>3.11.0</version>
<version>3.11.1</version>
<packaging>jar</packaging>

<name>DynamicShop</name>
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/me/sat7/dynamicshop/guis/ShopSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@ else if (e.getSlot() == FLAG4)
return;
}

if (data.get().contains("Options.flag.playerpoint"))
{
Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag playerpoint unset");
}

Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag jobPoint set");
}
DynaShopAPI.openShopSettingGui(player, shopName);
Expand Down Expand Up @@ -773,6 +778,11 @@ else if (e.getSlot() == FLAG12)
return;
}

if (data.get().contains("Options.flag.jobpoint"))
{
Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag jobpoint unset");
}

Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag integerOnly set");
Bukkit.dispatchCommand(player, "DynamicShop shop " + shopName + " flag playerpoint set");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/sat7/dynamicshop/transactions/Buy.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ else if (currency == ItemTrade.CURRENCY.PLAYER_POINT)
}
else if(currency == ItemTrade.CURRENCY.JOB_POINT)
{
currencyString = "jobpoint";
currencyString = "jobPoint";
}
else if(currency == ItemTrade.CURRENCY.PLAYER_POINT)
{
Expand Down

0 comments on commit d116bc0

Please sign in to comment.