mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Fixer upper
This commit is contained in:
parent
9dbe30aaa7
commit
f25d69c5fa
@ -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...");
|
||||
|
Loading…
Reference in New Issue
Block a user