Use console sender if you want colors in console.

This commit is contained in:
Brianna 2020-04-04 08:45:30 -04:00
parent a157e75004
commit 6753ea83d9
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class ChallengeCategory {
+ ") at challenge " + name + "(" + id + "): " + ex.getMessage()); + ") at challenge " + name + "(" + id + "): " + ex.getMessage());
} }
} }
Bukkit.getLogger().info("[FabledSkyBlock] " + ChatColor.GREEN + " Category " + name + ChatColor.GREEN Bukkit.getConsoleSender().sendMessage("[FabledSkyBlock] " + ChatColor.GREEN + "Category " + name + ChatColor.GREEN
+ " loaded with " + ChatColor.GOLD + challenges.size() + ChatColor.GREEN + " challenges"); + " loaded with " + ChatColor.GOLD + challenges.size() + ChatColor.GREEN + " challenges");
} }

View File

@ -4,6 +4,7 @@ import java.io.File;
import java.util.HashMap; import java.util.HashMap;
import java.util.logging.Level; import java.util.logging.Level;
import com.songoda.core.compatibility.CompatibleMaterial;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
@ -40,7 +41,7 @@ public class ChallengeManager {
Bukkit.getLogger().log(Level.SEVERE, "Error while loading challenges:", ex); Bukkit.getLogger().log(Level.SEVERE, "Error while loading challenges:", ex);
return; return;
} }
Bukkit.getLogger().info("[FabledSkyBlock] " + ChatColor.GREEN + " challenges loaded with " + ChatColor.GOLD Bukkit.getConsoleSender().sendMessage("[FabledSkyBlock] " + ChatColor.GREEN + " challenges loaded with " + ChatColor.GOLD
+ categories.size() + ChatColor.GREEN + " categories"); + categories.size() + ChatColor.GREEN + " categories");
} }