Skip to content

Commit d61a280

Browse files
committed
feat
1 parent eade5c9 commit d61a280

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/main/kotlin/com/github/zly2006/xbackup/Commands.kt

+11-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,17 @@ object Commands {
206206
}
207207
literal("version") {
208208
executes {
209-
it.source.send(Utils.translate("command.xb.version", XBackup.MOD_VERSION + "(" + XBackup.GIT_COMMIT + ")"))
209+
it.source.send(
210+
Utils.translate("command.xb.version", XBackup.MOD_VERSION + "(" + XBackup.GIT_COMMIT + ")")
211+
.styled {
212+
it.withClickEvent(
213+
ClickEvent(
214+
ClickEvent.Action.OPEN_URL,
215+
"https://github.com/zly2006/x-backup"
216+
)
217+
)
218+
}
219+
)
210220
1
211221
}
212222
}

0 commit comments

Comments
 (0)