Skip to content

Commit

Permalink
修复空消息问题
Browse files Browse the repository at this point in the history
  • Loading branch information
smallXueTu committed Apr 17, 2022
1 parent 52c1009 commit ffb82a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/cn/ltcraft/rcon/Listener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object Listener {
continue//如果玩家设置了多个服务器
}
val result = rconServer.command(message.contentToString().substring(1).trim())
if (result.isEmpty()){
if (result.isEmpty() || result.clean().isEmpty()){
subject.sendMessage("执行完成,服务器无返回!")
}
subject.sendMessage(result.clean())
Expand Down

0 comments on commit ffb82a1

Please sign in to comment.