Dieser Commit ist enthalten in:
Silent 2022-04-23 20:51:24 +02:00
Ursprung a90023a26a
Commit d82d368e77
2 geänderte Dateien mit 6 neuen und 11 gelöschten Zeilen

Datei anzeigen

@ -6,7 +6,7 @@
<groupId>tsp.headdb</groupId>
<artifactId>HeadDB</artifactId>
<version>4.4.0</version>
<version>4.4.1</version>
<packaging>jar</packaging>
<properties>

Datei anzeigen

@ -337,15 +337,14 @@ public class InventoryUtils {
Utils.sendMessage(player, String.format(localization.getMessage("purchasedHead"), amount, description, cost));
Utils.playSound(player, "paid");
result.accept(true);
return;
}
});
} else {
Utils.sendMessage(player, String.format(localization.getMessage("notEnoughMoney"), amount, description));
Utils.playSound(player, "unavailable");
result.accept(false);
}
});
Utils.sendMessage(player, String.format(localization.getMessage("notEnoughMoney"), amount, description));
Utils.playSound(player, "unavailable");
result.accept(false);
return;
}
@ -379,12 +378,8 @@ public class InventoryUtils {
}
private static void runPurchaseCommands() {
// Backwards compatability
if (!config.contains("commands.purchase")) {
return;
}
for (String cmd : config.getStringList("commands.purchase")) {
if (cmd.isEmpty()) continue;
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), cmd);
}
}