Add an option to disable start balance notifications.

This commit is contained in:
AppleDash 2016-11-26 09:43:05 -05:00
parent bbfd9d31d7
commit 44c72490a5
2 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,9 @@ public class JoinQuitListener implements Listener {
plugin.getEconomyManager().transact(new Transaction(
Economable.CONSOLE, economable, startBalance, TransactionReason.STARTING_BALANCE
));
MessageUtils.sendMessage(player, "You've been issued a starting balance of %s!", plugin.getEconomyManager().getCurrency().formatAmount(startBalance));
if (plugin.getConfig().getBoolean("economy.notify-start-balance", true)) {
MessageUtils.sendMessage(player, "You've been issued a starting balance of %s!", plugin.getEconomyManager().getCurrency().formatAmount(startBalance));
}
}
/* Update notification */

View File

@ -13,5 +13,6 @@ chat:
economy:
start-balance: 0.0
notify-start-balance: true
debug: false