fance enable
This commit is contained in:
parent
f02b34b3ee
commit
64c0ce3a0a
@ -5,8 +5,12 @@ import me.xginko.villageroptimizer.commands.VillagerOptimizerCommand;
|
|||||||
import me.xginko.villageroptimizer.config.Config;
|
import me.xginko.villageroptimizer.config.Config;
|
||||||
import me.xginko.villageroptimizer.config.LanguageCache;
|
import me.xginko.villageroptimizer.config.LanguageCache;
|
||||||
import me.xginko.villageroptimizer.modules.VillagerOptimizerModule;
|
import me.xginko.villageroptimizer.modules.VillagerOptimizerModule;
|
||||||
|
import net.kyori.adventure.text.Component;
|
||||||
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
|
import net.kyori.adventure.text.format.TextDecoration;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.command.ConsoleCommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
@ -34,13 +38,25 @@ public final class VillagerOptimizer extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
instance = this;
|
instance = this;
|
||||||
logger = getLogger();
|
logger = getLogger();
|
||||||
logger.info("Loading Translations");
|
ConsoleCommandSender console = getServer().getConsoleSender();
|
||||||
|
console.sendMessage(Component.text(
|
||||||
|
"""
|
||||||
|
\s
|
||||||
|
_ __ _ __ __ ____ __ _ _ \s
|
||||||
|
| | / /(_)/ // /____ _ ____ _ ___ _____ / __ \\ ____ / /_ (_)____ ___ (_)____ ___ _____
|
||||||
|
| | / // // // // __ `// __ `// _ \\ / ___// / / // __ \\ / __// // __ `__ \\ / //_ / / _ \\ / ___/
|
||||||
|
| |/ // // // // /_/ // /_/ // __// / / /_/ // /_/ // /_ / // / / / / // / / /_/ __// / \s
|
||||||
|
|___//_//_//_/ \\__,_/ \\__, / \\___//_/ \\____// .___/ \\__//_//_/ /_/ /_//_/ /___/\\___//_/ \s
|
||||||
|
/____/ /_/ by xGinko \s
|
||||||
|
"""
|
||||||
|
).color(TextColor.color(102,255,230)).decorate(TextDecoration.BOLD));
|
||||||
|
console.sendMessage(Component.text("Loading Translations...").color(TextColor.color(102,255,230)));
|
||||||
reloadLang();
|
reloadLang();
|
||||||
logger.info("Loading Config");
|
console.sendMessage(Component.text("Loading Config...").color(TextColor.color(102,255,230)));
|
||||||
reloadConfiguration();
|
reloadConfiguration();
|
||||||
logger.info("Registering Commands");
|
console.sendMessage(Component.text("Registering Commands...").color(TextColor.color(102,255,230)));
|
||||||
VillagerOptimizerCommand.reloadCommands();
|
VillagerOptimizerCommand.reloadCommands();
|
||||||
logger.info("Done.");
|
console.sendMessage(Component.text("Done.").color(TextColor.color(102,255,230)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static VillagerOptimizer getInstance() {
|
public static VillagerOptimizer getInstance() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user