aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/configuration/Configuration.java
diff options
context:
space:
mode:
authorTorui <44932079+ToruiDev@users.noreply.github.com>2022-05-08 13:05:09 +0200
committerGitHub <noreply@github.com>2022-05-08 13:05:09 +0200
commita7d7277bfa5274c816b93e4493447989c3d562da (patch)
treec61821e43af07ad31b166b2cac797471d21548f4 /src/main/java/de/torui/coflsky/configuration/Configuration.java
parent176abc9c9ab1004e99417b11e91d6c3f21bd7f69 (diff)
downloadCOFL-a7d7277bfa5274c816b93e4493447989c3d562da.tar.gz
COFL-a7d7277bfa5274c816b93e4493447989c3d562da.tar.bz2
COFL-a7d7277bfa5274c816b93e4493447989c3d562da.zip
Feature/configuration (#59)
* initial commit of configuration management * Updated Configuration Options * Review Feedback, IntelliJ was angry about TimerCountdown.java import Co-authored-by: Florian Rinke <florian@torui.de>
Diffstat (limited to 'src/main/java/de/torui/coflsky/configuration/Configuration.java')
-rw-r--r--src/main/java/de/torui/coflsky/configuration/Configuration.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/main/java/de/torui/coflsky/configuration/Configuration.java b/src/main/java/de/torui/coflsky/configuration/Configuration.java
new file mode 100644
index 0000000..bdd6186
--- /dev/null
+++ b/src/main/java/de/torui/coflsky/configuration/Configuration.java
@@ -0,0 +1,37 @@
+package de.torui.coflsky.configuration;
+
+public class Configuration {
+ public Configuration() {
+
+ }
+
+ private static Configuration instance;
+
+ public static Configuration getInstance() {
+ if (instance == null)
+ instance = new Configuration();
+ return instance;
+ }
+
+ public static void setInstance(Configuration config) {
+ instance = config;
+ }
+
+ 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;
+
+ @Description("Wherever or not to send item descriptions for extending to the server")
+ public boolean ExtendDescriptions;
+
+ @Description("Chat input starting with one of these prefixes is sent to the server")
+ public String[] CommandPrefixes;
+
+}