From f25d69c5fa89231dc59e5d1d7eb83d7c18a615c8 Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Fri, 17 Mar 2023 22:10:32 -0500 Subject: [PATCH] Fixer upper --- .../src/main/java/me/totalfreedom/discord/TFD4J.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/discord/src/main/java/me/totalfreedom/discord/TFD4J.java b/discord/src/main/java/me/totalfreedom/discord/TFD4J.java index 129688ea..899d1b18 100644 --- a/discord/src/main/java/me/totalfreedom/discord/TFD4J.java +++ b/discord/src/main/java/me/totalfreedom/discord/TFD4J.java @@ -11,9 +11,16 @@ import me.totalfreedom.discord.listener.MinecraftListener; import me.totalfreedom.discord.react.ReactiveBukkitScheduler; import me.totalfreedom.totalfreedommod.api.Context; import me.totalfreedom.totalfreedommod.api.TFD4JCommons; +import org.apache.commons.lang.StringUtils; import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.util.StringUtil; import org.slf4j.Logger; +/** + * @author Paldiu + * @author videogamesm12 + * @since 2023-03-16 + */ public class TFD4J extends JavaPlugin { private final Logger slf4j = this.getSLF4JLogger(); @@ -35,9 +42,12 @@ public class TFD4J extends JavaPlugin this.bot = new Bot(); bot.initialize(); + slf4j().info("Bot successfully initialized! Abstracting the BukkitScheduler..."); this.rbs = new ReactiveBukkitScheduler(this); - slf4j().info("Bot successfully initialized! Registering the Bukkit Native listener..."); + String string = String.format("Scheduler successfully wrapped into %s! Registering the Bukkit Native listener...", ReactiveBukkitScheduler.class.getName()); // Fixes SonarLint's "Invoke methods only conditionally." + + slf4j().info(string); this.bn = new BukkitNative(this); slf4j().info("Bukkit Native listener successfully registered! Registering the Discord4J Listeners...");