Skip to content

Commit f5af345

Browse files
authored
汉化
1 parent dcb95b3 commit f5af345

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/me/fhoz/globiamachines/GlobiaMachines.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ public void onDisable() {
103103
public boolean onCommand(@Nonnull CommandSender sender, @Nonnull Command cmd, @Nonnull String label, String[] args) {
104104

105105
if (args.length == 0) {
106-
Utils.send(sender, "&cInvalid command");
106+
Utils.send(sender, "&c无效指令");
107107
return true;
108108
}
109109

110110
if (!(sender instanceof Player)) {
111-
Utils.send(sender, "&cThere are no console commands available");
111+
Utils.send(sender, "&c没有可用的控制台指令");
112112
return true;
113113
}
114114

@@ -123,7 +123,7 @@ public boolean onCommand(@Nonnull CommandSender sender, @Nonnull Command cmd, @N
123123
return true;
124124
case "VERSION":
125125
case "V":
126-
Utils.send(p, "&eThe current version is " + this.getPluginVersion());
126+
Utils.send(p, "&e当前版本:" + this.getPluginVersion());
127127
return true;
128128
}
129129

@@ -132,18 +132,18 @@ public boolean onCommand(@Nonnull CommandSender sender, @Nonnull Command cmd, @N
132132
case "ADDINFO":
133133

134134
if (args.length != 3) {
135-
Utils.send(p, "&cPlease specify the key and the data");
135+
Utils.send(p, "&c请指定密钥和数据");
136136

137137
} else {
138138
RayTraceResult rayResult = p.rayTraceBlocks(5d);
139139
if (rayResult != null && rayResult.getHitBlock() != null
140140
&& BlockStorage.hasBlockInfo(rayResult.getHitBlock())) {
141141

142142
BlockStorage.addBlockInfo(rayResult.getHitBlock(), args[1], args[2]);
143-
Utils.send(p, "&aInfo has been added.");
143+
Utils.send(p, "&a信息已添加");
144144

145145
} else {
146-
Utils.send(p, "&cYou must be looking at a Slimefun block");
146+
Utils.send(p, "&c你必须看向粘液科技方块");
147147
}
148148
}
149149
return true;
@@ -153,7 +153,7 @@ public boolean onCommand(@Nonnull CommandSender sender, @Nonnull Command cmd, @N
153153
}
154154
}
155155

156-
Utils.send(p, "&cCommand not found");
156+
Utils.send(p, "&c指令未发现");
157157

158158
return false;
159159
}

0 commit comments

Comments
 (0)