From 9cda7c0ed7e142a8a99c9d5be67d2aa258e858ec Mon Sep 17 00:00:00 2001 From: m1sk9 Date: Fri, 11 Oct 2024 18:57:44 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=82=82=E3=81=86=E5=B0=91=E3=81=97?= =?UTF-8?q?=E3=83=AC=E3=82=A2=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../space/yurisi/universecorev2/command/menuCommand.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/space/yurisi/universecorev2/command/menuCommand.java b/src/main/java/space/yurisi/universecorev2/command/menuCommand.java index b3d21d68..a892072b 100644 --- a/src/main/java/space/yurisi/universecorev2/command/menuCommand.java +++ b/src/main/java/space/yurisi/universecorev2/command/menuCommand.java @@ -22,9 +22,8 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command MainMenu mainMenu = new MainMenu(); mainMenu.sendMenu(player); - Random random = new Random(); - // 5%の確率でクリーパーの効果音を再生 - if (random.nextInt(100) < 5) { + // 0.122%の確率でクリーパーの効果音を再生 + if (new Random().nextDouble() < 0.000122) { player.playSound(player.getLocation(), Sound.ENTITY_CREEPER_PRIMED, 10, 1); player.playSound(player.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 10, 1); Message.sendSuccessMessage(player, "[管理AI]", "§c§oメニューを開きました...ヮ! クリーパーが... (´・ω・`)");