mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-22 18:16:11 +01:00
Add an option to disable start balance notifications.
This commit is contained in:
parent
bbfd9d31d7
commit
44c72490a5
@ -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 */
|
||||
|
@ -13,5 +13,6 @@ chat:
|
||||
|
||||
economy:
|
||||
start-balance: 0.0
|
||||
notify-start-balance: true
|
||||
|
||||
debug: false
|
||||
|
Loading…
Reference in New Issue
Block a user