From e82a97b83041cf552dae3379e6071204c8993f9e Mon Sep 17 00:00:00 2001 From: olim Date: Tue, 20 Feb 2024 12:39:15 +0000 Subject: 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 --- .../java/de/hysky/skyblocker/skyblock/chat/ChatRule.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/main/java/de/hysky/skyblocker/skyblock/chat/ChatRule.java') 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; } -- cgit