Skip to content

Commit

Permalink
Add an option to disable start balance notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
AppleDash committed Nov 26, 2016
1 parent bbfd9d3 commit 44c7249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public void onPlayerJoin(PlayerJoinEvent evt) {
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 */
Expand Down
1 change: 1 addition & 0 deletions SaneEconomyCore/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ chat:

economy:
start-balance: 0.0
notify-start-balance: true

debug: false

0 comments on commit 44c7249

Please sign in to comment.