1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Merge pull request #1346 from BeepoWuff/silent-mode-behaviour-fix

ActionBars SilentMode Behvaiour Fix
This commit is contained in:
Zrips 2022-01-13 13:01:42 +02:00 committed by GitHub
commit bf69de12d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ public class BufferedEconomy {
* @param payment {@link BufferedPayment}
*/
public void showPayment(BufferedPayment payment) {
if (Jobs.getGCManager().aBarSilentMode || payment.getOfflinePlayer() == null || !payment.getOfflinePlayer().isOnline()
if (payment.getOfflinePlayer() == null || !payment.getOfflinePlayer().isOnline()
|| !payment.containsPayment())
return;
@ -274,7 +274,7 @@ public class BufferedEconomy {
Jobs.getGCManager().ActionBarsMessageByDefault);
if (showInActionbar) {
CMIActionBar.send(abp, message);
} else {
} else if (!Jobs.getGCManager().aBarSilentMode) {
abp.sendMessage(message);
}
}