Fixer upper

This commit is contained in:
Paul Reilly 2023-03-17 22:10:32 -05:00
parent 9dbe30aaa7
commit f25d69c5fa

View File

@ -11,9 +11,16 @@ import me.totalfreedom.discord.listener.MinecraftListener;
import me.totalfreedom.discord.react.ReactiveBukkitScheduler; import me.totalfreedom.discord.react.ReactiveBukkitScheduler;
import me.totalfreedom.totalfreedommod.api.Context; import me.totalfreedom.totalfreedommod.api.Context;
import me.totalfreedom.totalfreedommod.api.TFD4JCommons; import me.totalfreedom.totalfreedommod.api.TFD4JCommons;
import org.apache.commons.lang.StringUtils;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.util.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
/**
* @author Paldiu
* @author videogamesm12
* @since 2023-03-16
*/
public class TFD4J extends JavaPlugin public class TFD4J extends JavaPlugin
{ {
private final Logger slf4j = this.getSLF4JLogger(); private final Logger slf4j = this.getSLF4JLogger();
@ -35,9 +42,12 @@ public class TFD4J extends JavaPlugin
this.bot = new Bot(); this.bot = new Bot();
bot.initialize(); bot.initialize();
slf4j().info("Bot successfully initialized! Abstracting the BukkitScheduler...");
this.rbs = new ReactiveBukkitScheduler(this); 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); this.bn = new BukkitNative(this);
slf4j().info("Bukkit Native listener successfully registered! Registering the Discord4J Listeners..."); slf4j().info("Bukkit Native listener successfully registered! Registering the Discord4J Listeners...");