diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-13 08:13:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 08:13:55 +0200 |
commit | 961b5a839d5092b5edda37ffc645cf5a2c67a8ba (patch) | |
tree | eca12602722c9d9632c73caacd235600d5d17d1d /src/main/java/at/hannibal2/skyhanni/config | |
parent | 0a9c63b5f5f0ff9eca991c93f12afa2ae03cf3ae (diff) | |
download | skyhanni-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.java | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/misc/PartyCommandsConfig.java | 44 |
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; + } + } + +} |