From c500dcc874d9014d889e3082ba4e92027e8d3749 Mon Sep 17 00:00:00 2001 From: ybw0014 Date: Tue, 14 Jun 2022 02:16:28 -0400 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .../sefiraat/netheopoiesis/listeners/PlayerSleepListener.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index c0a360a..e04de43 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -108,8 +108,8 @@ body: label: Minecraft 版本 description: 请选择你的 Minecraft 版本 options: + - 1.19.x - 1.18.x - - 1.17.x - 本插件不支持旧版本 validations: required: true diff --git a/src/main/java/dev/sefiraat/netheopoiesis/listeners/PlayerSleepListener.java b/src/main/java/dev/sefiraat/netheopoiesis/listeners/PlayerSleepListener.java index 3cd8370..44af415 100644 --- a/src/main/java/dev/sefiraat/netheopoiesis/listeners/PlayerSleepListener.java +++ b/src/main/java/dev/sefiraat/netheopoiesis/listeners/PlayerSleepListener.java @@ -35,9 +35,9 @@ public void onSleep(@Nonnull PlayerInteractEvent event) { if (TimePeriod.isNight(world)) { player.sleep(block.getLocation(), true); player.setBedSpawnLocation(block.getLocation()); - player.sendMessage(ChatColor.WHITE + "Respawn point set"); + player.sendMessage(ChatColor.WHITE + "已设置重生点"); } else { - player.sendMessage(ChatColor.WHITE + "You can only sleep at night or during thunderstorms"); + player.sendMessage(ChatColor.WHITE + "你只能在夜间或者雷雨天睡觉"); } }