Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit 89081e2

Browse files
committed
fix(huHoBot): 修复自定义命令执行逻辑并更新版本号
- 将版本号从 1.2.8 升级到 1.2.9 - 修复 CustomRun 和 CustomRunAdmin 类中的命令执行逻辑- 优化了命令执行流程,确保在无命令时正确结束执行
1 parent c5f8a2d commit 89081e2

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
# HuHoBot-Spigot-Adapter v1.2.7
1+
# HuHoBot-Spigot-Adapter v1.2.9
2+
3+
fix(huHoBot): 修复自定义命令执行逻辑
4+
5+
- 修复 CustomRun 和 CustomRunAdmin 类中的命令执行逻辑- 优化了命令执行流程,确保在无命令时正确结束执行
26

3-
feat(BotCustomCommand): 添加获取Data数据包的API

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = 'cn.huohuas001'
7-
version = '1.2.8'
7+
version = '1.2.9'
88

99
repositories {
1010
mavenCentral()

src/main/java/cn/huohuas001/huHoBot/NetEvent/CustomRun.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ private void CallEvent() {
2121
BotCustomCommand event = new BotCustomCommand(keyWord, body, packId, false);
2222
if (result == null) {
2323
Bukkit.getPluginManager().callEvent(event);
24-
return;
2524
} else {
2625
String command = result.getCommand();
2726
for (int i = 0; i < param.size(); i++) {
@@ -33,6 +32,7 @@ private void CallEvent() {
3332
return;
3433
}
3534
runCommand(command);
35+
return;
3636
}
3737

3838
//执行后判定是否有命令接收

src/main/java/cn/huohuas001/huHoBot/NetEvent/CustomRunAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ private void CallEvent() {
2121
BotCustomCommand event = new BotCustomCommand(keyWord, body, packId, true);
2222
if (result == null) {
2323
Bukkit.getPluginManager().callEvent(event);
24-
return;
2524
} else {
2625
String command = result.getCommand();
2726
for (int i = 0; i < param.size(); i++) {
2827
int replaceNum = i + 1;
2928
command = command.replace("&" + replaceNum, param.get(i));
3029
}
3130
runCommand(command);
31+
return;
3232
}
3333

3434
//执行后判定是否有命令接收

0 commit comments

Comments
 (0)