diff options
author | olim <bobq4582@gmail.com> | 2024-02-20 12:39:15 +0000 |
---|---|---|
committer | olim <bobq4582@gmail.com> | 2024-02-20 12:39:15 +0000 |
commit | e82a97b83041cf552dae3379e6071204c8993f9e (patch) | |
tree | ffd7b7c749dce1bdd028f17ed2d9a8ec1ccc9852 /src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java | |
parent | 5a86e887a527d41fd36e8988b7414921990da1d0 (diff) | |
download | Skyblocker-e82a97b83041cf552dae3379e6071204c8993f9e.tar.gz Skyblocker-e82a97b83041cf552dae3379e6071204c8993f9e.tar.bz2 Skyblocker-e82a97b83041cf552dae3379e6071204c8993f9e.zip |
add defalut rules on first load
add rule to clean hub chat and for mining ability when first loaded as examples of what the user can do
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java b/src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java index f2ecefc6..93897988 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java @@ -47,6 +47,21 @@ public class ChatRule { this.customSound = null; } + public ChatRule(String name, Boolean enabled, Boolean isPartialMatch, Boolean isRegex, Boolean isIgnoreCase, String filter, String validLocations, Boolean hideMessage, Boolean showActionBar, Boolean showAnnouncement, String replaceMessage, SoundEvent customSound) { + this.name = name; + this.enabled = enabled; + this.isPartialMatch = isPartialMatch; + this.isRegex = isRegex; + this.isIgnoreCase = isIgnoreCase; + this.filter = filter; + this.validLocations = validLocations; + this.hideMessage = hideMessage; + this.showActionBar = showActionBar; + this.showAnnouncement = showAnnouncement; + this.replaceMessage = replaceMessage; + this.customSound = customSound; + } + protected String getName() { return name; } |