Skip to content

Commit

Permalink
1.1.3: voucher bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benfiratkaya committed Jul 3, 2024
1 parent b4b18cc commit 1aa4d03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void createCommand(Player player, Double amount) {
boolean removeCredit = LeaderOSAPI.getCreditManager().remove(player.getName(), finalAmount);
if (removeCredit) {
// Calls UpdateCache event for update player's cache
org.bukkit.Bukkit.getPluginManager().callEvent(new UpdateCacheEvent(player.getName(), finalAmount, UpdateType.REMOVE));
org.bukkit.Bukkit.getScheduler().runTask(Bukkit.getInstance(), () -> org.bukkit.Bukkit.getPluginManager().callEvent(new UpdateCacheEvent(player.getName(), finalAmount, UpdateType.REMOVE)));

ChatUtil.sendMessage(player, ChatUtil.replacePlaceholders(
Bukkit.getInstance().getLangFile().getMessages().getVouchers().getSuccessfullyCreated(),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<shared.version>1.1.2</shared.version>
<shared.version>1.1.3</shared.version>
</properties>

<!-- Dependencies -->
Expand Down
4 changes: 2 additions & 2 deletions velocity/src/main/java/net/leaderos/velocity/Velocity.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@Plugin(
id = "leaderos",
name = "LeaderOS",
version = "1.1.2",
version = "1.1.3",
url = "https://leaderos.net",
description = "LeaderOS Plugin for Velocity",
authors = {"leaderos"}
Expand Down Expand Up @@ -209,7 +209,7 @@ public void setupFiles() {

public void checkUpdate() {
Velocity.getInstance().getServer().getScheduler().buildTask(Velocity.getInstance(), () -> {
PluginUpdater updater = new PluginUpdater("1.1.2");
PluginUpdater updater = new PluginUpdater("1.1.3");
try {
if (updater.checkForUpdates()) {
Component msg = ChatUtil.replacePlaceholders(
Expand Down

0 comments on commit 1aa4d03

Please sign in to comment.