Skip to content

Commit

Permalink
Logging color doesn't display fix.
Browse files Browse the repository at this point in the history
I was using this incorrectly, ChatColor class from bukkit api is only for Minecraft chat's and doesn't work in Minecraft consoles, so I'm correcting this using the info i found online about how this should be done properly. So I will use different types levels of logging to add color, for example warnings are yellow.
  • Loading branch information
Kame03 committed Jan 15, 2023
1 parent 25d886f commit c554c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/in/rs/milivojevic/KPManager/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public final class Main extends JavaPlugin implements Listener {

@Override
public void onEnable() {
getLogger().info(ChatColor.translateAlternateColorCodes('&', "&bStarting!"));
getLogger().info(ChatColor.translateAlternateColorCodes('&', "&bThis plugin is made by Kamey_"));
getLogger().info("Starting!");
getLogger().warning("This plugin is made by Kamey_");
this.saveDefaultConfig();
JoinWelcomer joinWelcomer = new JoinWelcomer(this);
getServer().getPluginManager().registerEvents(joinWelcomer, this);
Expand Down

0 comments on commit c554c86

Please sign in to comment.