File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ plugins {
7
7
}
8
8
9
9
group = " com.github.samarium150"
10
- version = " 1.4.2 "
10
+ version = " 1.4.3 "
11
11
12
12
repositories {
13
13
mavenLocal()
Original file line number Diff line number Diff line change @@ -154,11 +154,11 @@ object Lolicon: CompositeCommand(
154
154
try {
155
155
setting = value.toInt()
156
156
} catch (e: NumberFormatException ) {
157
- sendMessage(" 非法属性 " )
157
+ sendMessage(" ${value} 不是有效的数字 " )
158
158
return
159
159
}
160
- if (setting != 0 || setting != 1 || setting != 2 ) {
161
- sendMessage(" 非法属性 " )
160
+ if (setting != 0 && setting != 1 && setting != 2 ) {
161
+ sendMessage(" 设置的数字无效 " )
162
162
return
163
163
}
164
164
PluginData .customR18Groups[(subject as Group ).id] = setting
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import net.mamoe.mirai.utils.info
26
26
object Main: KotlinPlugin(
27
27
JvmPluginDescription (
28
28
id = "com.github.samarium150.mirai-console-lolicon",
29
- version = "1.4.2 ",
29
+ version = "1.4.3 ",
30
30
name = "mirai-console-lolicon"
31
31
)
32
32
) {
You can’t perform that action at this time.
0 commit comments