Skip to content

Commit

Permalink
Add colored power logging - Mercury idea
Browse files Browse the repository at this point in the history
  • Loading branch information
Dueris committed Jan 1, 2024
1 parent 7475b77 commit 1bf45aa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import me.dueris.genesismc.utils.OriginContainer;
import me.dueris.genesismc.utils.PowerContainer;
import me.dueris.genesismc.utils.SendCharts;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down Expand Up @@ -369,7 +370,7 @@ public static void assignPowers(Player player, LayerContainer layer) throws Inst
powersAppliedList.get(player).add(c);
}
if (GenesisDataFiles.getMainConfig().getString("console-startup-debug").equalsIgnoreCase("true")) {
Bukkit.getConsoleSender().sendMessage("Assigned power[" + power.getTag() + "] to player " + player.getName());
Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "Assigned power[" + power.getTag() + "] to player " + player.getName());
}
}
}
Expand Down Expand Up @@ -412,7 +413,7 @@ public static void unassignPowers(Player player, LayerContainer layer) {
}
powerRemovedClasses.add(c);
if (GenesisDataFiles.getMainConfig().getString("console-startup-debug").equalsIgnoreCase("true")) {
Bukkit.getConsoleSender().sendMessage("Removed power[" + power.getTag() + "] to player " + player.getName());
Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "Removed power[" + power.getTag() + "] from player " + player.getName());
}
}
}
Expand Down

0 comments on commit 1bf45aa

Please sign in to comment.