From 37a2370f49c649ce28052011a8c6cb4ae4f362c8 Mon Sep 17 00:00:00 2001 From: Alexiscomete <63195504+Alexiscomete@users.noreply.github.com> Date: Tue, 11 Jan 2022 13:23:53 +0100 Subject: [PATCH] Change a variable : the method return void and s was never update --- .../predictions/AreYouGoingToCheatPrediction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/me/nik/predictioneverything/predictions/AreYouGoingToCheatPrediction.java b/src/main/java/me/nik/predictioneverything/predictions/AreYouGoingToCheatPrediction.java index ba4bcfe..1898943 100644 --- a/src/main/java/me/nik/predictioneverything/predictions/AreYouGoingToCheatPrediction.java +++ b/src/main/java/me/nik/predictioneverything/predictions/AreYouGoingToCheatPrediction.java @@ -3,7 +3,7 @@ import org.bukkit.plugin.java.JavaPlugin; public class AreYouGoingToCheatPrediction extends JavaPlugin { - String s; + String s = ""; public void run() { getLogger().info("Are you going to cheat? Let's see..."); for (int i = 0; i < 1000; i++) { @@ -22,7 +22,6 @@ public void run() { } } private void prediction() { - String s = ""; if (Math.random() < 0.0005) { s = "Yes, you are going to cheat!"; } else {