Add option to disable bet won title message
This commit is contained in:
1 parent
0602faec83
commit
33b18163f6
3 files changed
+7
-1
No files matched your search
@@ -147,6 +147,9 @@ public class Config extends AbstractConfiguration<DuelsPlugin> {
|
||||
private List<String> whitelistedCommands;
|
||||
@Getter
|
||||
private List<String> blacklistedCommands;
|
||||
|
||||
@Getter
|
||||
private boolean isVictoryTitleEnabled;
|
||||
|
||||
@Getter
|
||||
private List<String> queueBlacklistedCommands;
|
||||
@@ -327,6 +330,7 @@ public class Config extends AbstractConfiguration<DuelsPlugin> {
|
||||
blockAllCommands = configuration.getBoolean("duel.block-all-commands", false);
|
||||
whitelistedCommands = configuration.getStringList("duel.whitelisted-commands");
|
||||
blacklistedCommands = configuration.getStringList("duel.blacklisted-commands");
|
||||
isVictoryTitleEnabled = configuration.getBoolean("duel.enable-victory-title");
|
||||
|
||||
queueBlacklistedCommands = configuration.getStringList("queue.blacklisted-commands");
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ public class DuelManager implements Loadable {
|
||||
|
||||
final String title = lang.getMessage("DUEL.reward.money.title", "name", opponentName, "money", amount);
|
||||
|
||||
if (title != null) {
|
||||
if (title != null && config.isVictoryTitleEnabled()) {
|
||||
Titles.send(player, title, null, 0, 20, 50);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,6 +366,8 @@ duel:
|
||||
- 'playervaults:pv'
|
||||
- 'playervaults:playervaults'
|
||||
|
||||
# Determines whether a victory title will be sent upon winning a bet.
|
||||
enable-victory-title: true
|
||||
|
||||
queue:
|
||||
# List of commands to block while in a queue.
|
||||
|
||||
Reference in new issue
Block a user