diff options
author | Jordan <77755681+Jordyrat@users.noreply.github.com> | 2024-08-31 21:50:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 22:50:16 +0200 |
commit | 755a36d801e29a3c517e9c7abbf4ef6b016b026a (patch) | |
tree | 4840b326a24f8a0d9d957c0c0713930103548bba /src/main/java/at/hannibal2/skyhanni/config | |
parent | 79d891d5a3e1bffd31491a921757ccf7ab66b5fe (diff) | |
download | skyhanni-755a36d801e29a3c517e9c7abbf4ef6b016b026a.tar.gz skyhanni-755a36d801e29a3c517e9c7abbf4ef6b016b026a.tar.bz2 skyhanni-755a36d801e29a3c517e9c7abbf4ef6b016b026a.zip |
Feature: Reverse Party Transfer (#1712)
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
3 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index c14023dba..f7101cd4b 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -612,6 +612,7 @@ object Commands { registerCommand("pt", "Transfer the party to another party member") { PartyCommands.transfer(it) } registerCommand("pp", "Promote a specific party member") { PartyCommands.promote(it) } registerCommand("pd", "Disbands the party") { PartyCommands.disband() } + registerCommand("rpt", "Reverse transfer party to the previous leader") { PartyCommands.reverseTransfer() } } @JvmStatic diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/commands/CommandsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/commands/CommandsConfig.java index 783d43d74..1747baee6 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/commands/CommandsConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/commands/CommandsConfig.java @@ -18,6 +18,11 @@ public class CommandsConfig { @Expose public BetterWikiCommandConfig betterWiki = new BetterWikiCommandConfig(); + @ConfigOption(name = "Reverse Party Transfer", desc = "") + @Accordion + @Expose + public ReversePartyTransferConfig reversePT = new ReversePartyTransferConfig(); + @ConfigOption(name = "Party Commands", desc = "Shortens party commands and allows tab-completing for them. " + "\n§eCommands: /pt, /pp, /pko, /pk, /pd §7(SkyBlock command §e/pt §7to check your play time will still work)") @Expose diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/commands/ReversePartyTransferConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/commands/ReversePartyTransferConfig.java new file mode 100644 index 000000000..555733667 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/commands/ReversePartyTransferConfig.java @@ -0,0 +1,27 @@ +package at.hannibal2.skyhanni.config.features.commands; + +import at.hannibal2.skyhanni.config.FeatureToggle; +import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorText; +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; + +public class ReversePartyTransferConfig { + + @Expose + @ConfigOption(name = "Command", desc = "Adds §e/rpt §7to transfer a party back to its previous leader.") + @ConfigEditorBoolean + @FeatureToggle + public boolean command = true; + + @Expose + @ConfigOption(name = "Clickable Message", desc = "Allows transfer message to be clicked to transfer a party back to its previous leader if it has been transferred to you.") + @ConfigEditorBoolean + @FeatureToggle + public boolean clickable = false; + + @Expose + @ConfigOption(name = "Response Message", desc = "Sends a custom message to party chat when the party is reverse transferred.") + @ConfigEditorText + public String message = "Nuh Uh"; +} |