1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-07 00:38:42 +01:00

Fix for showing messages without payment (again) (#543)

This commit is contained in:
Yiğit Duman 2019-09-16 19:27:50 +03:00 committed by montlikadani
parent 41d2e04b50
commit 6f4501ff05

View File

@ -220,6 +220,9 @@ public class BufferedEconomy {
if (!ToggleBarHandling.getActionBarToggle().containsKey(playername))
return;
if (payment.getAmount() == 0.0D && payment.getPoints() == 0.0D && payment.getExp() == 0.0D)
return;
Boolean show = ToggleBarHandling.getActionBarToggle().get(playername);
Player abp = Bukkit.getPlayer(payment.getOfflinePlayer().getUniqueId());
if ((abp != null) && (show.booleanValue())) {