Skip to content

Commit

Permalink
3.17.4
Browse files Browse the repository at this point in the history
Took 5 minutes
  • Loading branch information
kiranhart committed Jul 7, 2024
1 parent 542fb9b commit 1b811e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

<name>Markets</name>
<description>A new take on traditional player owned shops</description>
<version>2.17.2</version>
<version>2.17.4</version>
<packaging>jar</packaging>

<properties>
<author>Kiran Hart</author>
<jarName>${project.name}</jarName>
<main.class>${project.groupId}.${project.artifactId}.${project.name}</main.class>
<java.version>16</java.version>
<flight.version>3.22.0</flight.version>
<flight.version>3.22.3</flight.version>
<flight.path>ca.tweetzy</flight.path>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/ca/tweetzy/markets/impl/CategoryItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,15 @@ public void performPurchase(@NonNull final Market market, @NonNull Player buyer,
));

// call transaction event
final double totalFixed = isCurrencyOfItem() ? (int) total : total;
Bukkit.getServer().getPluginManager().callEvent(new MarketTransactionEvent(
buyer,
seller,
TransactionType.ITEM_PURCHASE,
this.item,
getCurrencyDisplayName(),
newPurchaseAmount,
isCurrencyOfItem() ? total : (int) total
totalFixed
));

transactionResult.accept(TransactionResult.SUCCESS);
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ softdepend:


libraries:
- com.google.code.gson:gson:2.8.9
- com.google.code.gson:gson:2.8.9
- org.apache.commons:commons-lang3:3.14.0

0 comments on commit 1b811e5

Please sign in to comment.