Skip to content

Commit

Permalink
汉化
Browse files Browse the repository at this point in the history
  • Loading branch information
haiman233 authored May 15, 2022
1 parent dcb95b3 commit f5af345
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/me/fhoz/globiamachines/GlobiaMachines.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ public void onDisable() {
public boolean onCommand(@Nonnull CommandSender sender, @Nonnull Command cmd, @Nonnull String label, String[] args) {

if (args.length == 0) {
Utils.send(sender, "&cInvalid command");
Utils.send(sender, "&c无效指令");
return true;
}

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

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

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

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

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

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

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

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

return false;
}
Expand Down

0 comments on commit f5af345

Please sign in to comment.