From 7c6d0214f99d75896bb65498de9b1cc33bfa6426 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Wed, 14 Dec 2016 22:12:09 -0500 Subject: [PATCH] Replaced Hwat on debug potatoes With the exception name, so instead of Hwat, there's IOException --- src/main/java/buttondevteam/lib/TBMCCoreAPI.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/buttondevteam/lib/TBMCCoreAPI.java b/src/main/java/buttondevteam/lib/TBMCCoreAPI.java index bf50d4a..bef6920 100644 --- a/src/main/java/buttondevteam/lib/TBMCCoreAPI.java +++ b/src/main/java/buttondevteam/lib/TBMCCoreAPI.java @@ -14,7 +14,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map.Entry; import java.util.Optional; -import java.util.Random; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; @@ -145,12 +144,6 @@ public final class TBMCCoreAPI { private static HashMap exceptionsToSend = new HashMap<>(); private static List debugMessagesToSend = new ArrayList<>(); - private static final String[] potatoMessages = new String[] { // - "Well shit", // - "Wait what", // - "Hwat", // - "Wat" // - }; /** * Send exception to the {@link TBMCExceptionEvent}. @@ -172,7 +165,7 @@ public final class TBMCCoreAPI { if (randomPlayer.isPresent()) { DebugPotato potato = new DebugPotato() .setMessage(new String[] { // - "§b§o" + potatoMessages[new Random().nextInt(potatoMessages.length)], // + "§b§o" + e.getClass().getSimpleName(), // "§c§o" + sourcemsg, // "§a§oFind a dev to fix this issue" }) .setType(e instanceof IOException ? "Potato on a Stick"