aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-13 08:13:55 +0200
committerGitHub <noreply@github.com>2024-04-13 08:13:55 +0200
commit961b5a839d5092b5edda37ffc645cf5a2c67a8ba (patch)
treeeca12602722c9d9632c73caacd235600d5d17d1d /src/main/java/at/hannibal2/skyhanni/config
parent0a9c63b5f5f0ff9eca991c93f12afa2ae03cf3ae (diff)
downloadskyhanni-961b5a839d5092b5edda37ffc645cf5a2c67a8ba.tar.gz
skyhanni-961b5a839d5092b5edda37ffc645cf5a2c67a8ba.tar.bz2
skyhanni-961b5a839d5092b5edda37ffc645cf5a2c67a8ba.zip
Add party chat commands (#1433)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/PartyCommandsConfig.java44
2 files changed, 48 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
index f4e5fd032..915430ea7 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
@@ -29,6 +29,10 @@ public class MiscConfig {
public CommandsConfig commands = new CommandsConfig();
@Expose
+ @Category(name = "Party Commands", desc = "Enable or disable party commands.")
+ public PartyCommandsConfig partyCommands = new PartyCommandsConfig();
+
+ @Expose
@Category(name = "Minions", desc = "The minions on your private island.")
public MinionsConfig minions = new MinionsConfig();
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/PartyCommandsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/PartyCommandsConfig.java
new file mode 100644
index 000000000..fb28b6544
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/PartyCommandsConfig.java
@@ -0,0 +1,44 @@
+package at.hannibal2.skyhanni.config.features.misc;
+
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+import org.jetbrains.annotations.NotNull;
+
+public class PartyCommandsConfig {
+
+ @Expose
+ @ConfigEditorDropdown
+ @ConfigOption(name = "Party Command Trust Level", desc = "Choose who can run party chat commands.")
+ public @NotNull TrustedUser defaultRequiredTrustLevel = TrustedUser.FRIENDS;
+
+ @Expose
+ @ConfigEditorBoolean
+ @ConfigOption(name = "Party Transfer", desc = "Automatically transfer the party to people who type §b!ptme")
+ public boolean transferCommand = false;
+
+ @Expose
+ @ConfigEditorBoolean
+ @ConfigOption(name = "Party Warp", desc = "Automatically warp the party if someone types §b!warp")
+ public boolean warpCommand = false;
+
+ public enum TrustedUser {
+ BEST_FRIENDS("Best Friends"),
+ FRIENDS("Friends"),
+ ANYONE("Everyone"),
+ NO_ONE("No One"),
+ ;
+ final String label;
+
+ TrustedUser(String label) {
+ this.label = label;
+ }
+
+ @Override
+ public String toString() {
+ return label;
+ }
+ }
+
+}