diff options
author | HackOS <63157139+HackedOS@users.noreply.github.com> | 2022-05-12 22:11:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 18:41:18 +0200 |
commit | ae12206958a0ba848594beeb2f804720d1a89d4f (patch) | |
tree | d18cb3b3a7f7214548a679ec58adbac4c3f3c849 /src/main/java/de/torui/coflsky/configuration/Configuration.java | |
parent | a7d7277bfa5274c816b93e4493447989c3d562da (diff) | |
download | COFL-ae12206958a0ba848594beeb2f804720d1a89d4f.tar.gz COFL-ae12206958a0ba848594beeb2f804720d1a89d4f.tar.bz2 COFL-ae12206958a0ba848594beeb2f804720d1a89d4f.zip |
Add Auto-Toggle and Send Scoreboard/Tab Menu Data (#58)
* Add Auto-Toggle
* Send Scoreboard data to the Server
* Fix Privacy settings and respect collect scoreboard
* Move code to EventHandlers.java and collect Tab Manu data
* Remove unused import
* Refactor for Readability
* Bug Fix
* Fix bug
* Add LocalConfig and Respect AutoStart
* Add chat msg when leaving skyblock
* Add ChatRegex
* Fix bug where purse doesnt update with pigyy bank
* Improve Performance
* Fix chatregex always being null
Diffstat (limited to 'src/main/java/de/torui/coflsky/configuration/Configuration.java')
-rw-r--r-- | src/main/java/de/torui/coflsky/configuration/Configuration.java | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/main/java/de/torui/coflsky/configuration/Configuration.java b/src/main/java/de/torui/coflsky/configuration/Configuration.java index bdd6186..1ef040f 100644 --- a/src/main/java/de/torui/coflsky/configuration/Configuration.java +++ b/src/main/java/de/torui/coflsky/configuration/Configuration.java @@ -1,5 +1,10 @@ package de.torui.coflsky.configuration; +import de.torui.coflsky.CoflSky; +import de.torui.coflsky.EventRegistry; + +import java.util.regex.Pattern; + public class Configuration { public Configuration() { @@ -15,19 +20,21 @@ public class Configuration { public static void setInstance(Configuration config) { instance = config; + CoflSky.config.autoStart = instance.autoStart; + EventRegistry.chatpattern = Pattern.compile(instance.chatRegex, Pattern.CASE_INSENSITIVE);; } - public String ChatRegex; - public boolean CollectChat; - public boolean CollectInventory; - public boolean CollectTab; - public boolean CollectScoreboard; - public boolean AllowProxy; - public boolean CollectInvClick; - public boolean CollectChatClicks; - public boolean CollectLobbyChanges; - public boolean CollectEntities; - + public String chatRegex; + public boolean collectChat; + public boolean collectInventory; + public boolean collectTab; + public boolean collectScoreboard; + public boolean allowProxy; + public boolean collectInvClick; + public boolean collectChatClicks; + public boolean collectLobbyChanges; + public boolean collectEntities; + public boolean autoStart; @Description("Wherever or not to send item descriptions for extending to the server") public boolean ExtendDescriptions; |