Skip to content

Commit f1375d8

Browse files
committed
change switch command in click event
1 parent 15dc8e3 commit f1375d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

buildSrc/src/main/java/Deps.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object Deps {
2-
val projectVersion = "1.0"
2+
val projectVersion = "1.1"
33

44
object Plugins {
55
const val paperweightVersion = "1.5.5"

src/main/java/dev/gamemode/chatchannels/command/ChatchannelsCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ private TextComponent buildToggle(MembershipChannel channel) {
7474

7575
@NotNull
7676
private TextComponent buildActive(Channel channel) {
77-
return Component.text("[Active]", NamedTextColor.GOLD)
78-
.hoverEvent(HoverEvent.showText(Component.text("Click to activate channel.")))
79-
.clickEvent(ClickEvent.runCommand("/activechannel " + channel.getName()));
77+
return Component.text("[Switch]", NamedTextColor.GOLD)
78+
.hoverEvent(HoverEvent.showText(Component.text("Click to switch channel.")))
79+
.clickEvent(ClickEvent.runCommand("/switchchannel " + channel.getName()));
8080
}
8181
}

0 commit comments

Comments
 (0)