From 3c8ba408fb2259ca2229104ed22ecdbecadb521e Mon Sep 17 00:00:00 2001 From: ybw0014 Date: Sat, 8 Jun 2024 11:45:13 -0400 Subject: [PATCH] =?UTF-8?q?chore(WirelessConfigurator):=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../slimefun/tools/NetworkWirelessConfigurator.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/io/github/sefiraat/networks/slimefun/tools/NetworkWirelessConfigurator.java b/src/main/java/io/github/sefiraat/networks/slimefun/tools/NetworkWirelessConfigurator.java index 570e8db6..4e12332f 100644 --- a/src/main/java/io/github/sefiraat/networks/slimefun/tools/NetworkWirelessConfigurator.java +++ b/src/main/java/io/github/sefiraat/networks/slimefun/tools/NetworkWirelessConfigurator.java @@ -54,7 +54,7 @@ public void onRightClick(PlayerRightClickEvent e) { setReceiver(heldItem, blockMenu, player); } } else { - player.sendMessage(Theme.ERROR + "Must target a Network Wireless block."); + player.sendMessage(Theme.ERROR + "必须对着网络无线方块使用。"); } } e.cancel(); @@ -72,17 +72,17 @@ private void setTransmitter(@Nonnull NetworkWirelessTransmitter transmitter, final Location location = PersistentDataAPI.get(itemMeta, TARGET_LOCATION, DataType.LOCATION); if (location == null) { - player.sendMessage(Theme.ERROR + "No Wireless Receiver has been set."); + player.sendMessage(Theme.ERROR + "需要先设置接收器位置。"); return; } if (location.getWorld() != blockMenu.getLocation().getWorld()) { - player.sendMessage(Theme.ERROR + "The Wireless Receiver is in a different world."); + player.sendMessage(Theme.ERROR + "网络无线接收器在不同的世界中。"); return; } transmitter.addLinkedLocation(blockMenu.getBlock(), location); - player.sendMessage(Theme.SUCCESS + "Set Transmitter's receiver location."); + player.sendMessage(Theme.SUCCESS + "已设置网络无线发射器。"); } private void setReceiver(@Nonnull ItemStack itemStack, @Nonnull BlockMenu blockMenu, @Nonnull Player player) { @@ -90,6 +90,6 @@ private void setReceiver(@Nonnull ItemStack itemStack, @Nonnull BlockMenu blockM final ItemMeta itemMeta = itemStack.getItemMeta(); PersistentDataAPI.set(itemMeta, TARGET_LOCATION, DataType.LOCATION, location); itemStack.setItemMeta(itemMeta); - player.sendMessage(Theme.SUCCESS + "Wireless Receiver set."); + player.sendMessage(Theme.SUCCESS + "已存储网络无线接收器的位置。"); } -} \ No newline at end of file +}