Skip to content

Commit

Permalink
优化文本并调整颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenyu550 committed Jan 21, 2024
1 parent ca41197 commit 30d7ae9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,14 @@ jobs:
uses: actions/upload-artifact@v3.1.3
with:
path: target/*.jar

- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@v1.2.1
if: success()
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "1"
prerelease: false
title: "AUTO RELEASE"
files: |
target/*.jar
22 changes: 11 additions & 11 deletions src/main/java/cn/dsnbo/bedrockplayersupport/form/MainForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public void openBedrockTeleportForm(Player player) {
}
}
CustomForm.Builder form = CustomForm.builder()
.title(6§l传送表单")
.dropdown("§a请选择传送类型", List.of("TPA", "TPAHERE"))
.dropdown("§a请选择要传送的玩家", onlinePlayerNameList)
.title(l传送菜单")
.dropdown("请选择传送类型", List.of("传送到对方的位置", "将对方传送到你的位置"))
.dropdown("选择玩家", onlinePlayerNameList)
.validResultHandler((customForm, customFormResponse) -> {
if (customFormResponse.asDropdown(0) == 0) {
player.chat("/tpa " + onlinePlayerNameList.get(customFormResponse.asDropdown(1)));
Expand All @@ -67,7 +67,7 @@ public void openBedrockTeleportHereForm(TeleportType tpType, Player requestor, P
UUID receiverUuid = receiver.getUniqueId();
if (tpType == TeleportType.Tpa) {
form = ModalForm.builder()
.title(6§l玩家请求传送到你的位置 §f(TPA)")
.title(l收到新的传送请求")
.content("玩家 " + requestorName + " 请求传送到你的位置")
.button1("§a同意")
.button2("§c拒绝")
Expand All @@ -79,8 +79,8 @@ public void openBedrockTeleportHereForm(TeleportType tpType, Player requestor, P
});
} else if (tpType == TeleportType.TpaHere) {
form = ModalForm.builder()
.title(6§l玩家请求你传送到他的位置 §f(TPAHERE)")
.content("玩家 " + requestorName + " 请求你传送到他的位置")
.title(l收到新的传送请求")
.content("玩家 " + requestorName + " 请求把你传送到他的位置")
.button1("§a同意")
.button2("§c拒绝")
.validResultHandler((modalForm, modalFormResponse) -> {
Expand All @@ -101,9 +101,9 @@ public void openBedrockMsgForm(Player player) {
}
}
CustomForm.Builder form = CustomForm.builder()
.title(6§l信息表单")
.dropdown("§a请选择接收信息的玩家", onlinePlayerName)
.input("§a请填写要发送的信息")
.title(l私信")
.dropdown("请选择接收私信的玩家", onlinePlayerName)
.input("请填写要发送的消息")
.validResultHandler(((response, customFormResponse) -> {
player.chat("/msg " + onlinePlayerName.get(customFormResponse.asDropdown(0)) + " " + customFormResponse.asInput(1));
}));
Expand All @@ -112,8 +112,8 @@ public void openBedrockMsgForm(Player player) {

public void openBedrockBackForm(Player player) {
ModalForm.Builder form = ModalForm.builder()
.title(6§l返回死亡点表单")
.content("是否返回上个死亡点")
.title(l你死掉了")
.content("是否要返回上个死亡点")
.button1("§a是")
.button2("§c否")
.validResultHandler(((modalForm, modalFormResponse) -> {
Expand Down

0 comments on commit 30d7ae9

Please sign in to comment.