mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Merge pull request #1346 from BeepoWuff/silent-mode-behaviour-fix
ActionBars SilentMode Behvaiour Fix
This commit is contained in:
commit
bf69de12d4
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user