Small fix

This commit is contained in:
SloudPL 2025-06-19 22:01:15 +02:00
parent 059ebd770b
commit 11ce126347
2 changed files with 5 additions and 5 deletions

View file

@ -62,11 +62,11 @@ public final class SloudChat extends JavaPlugin {
new UpdateChecker(this, 126174).getLatestVersion(version -> { new UpdateChecker(this, 126174).getLatestVersion(version -> {
String current = this.getDescription().getVersion(); String current = this.getDescription().getVersion();
if (!current.equalsIgnoreCase(version)) { if (!current.equalsIgnoreCase(version)) {
getLogger().warning("§cA new version of §eSloudChat §cis available!"); getLogger().warning("A new version of SloudChat is available!");
getLogger().warning("§7Current: §e" + current + " §7| Latest: §a" + version); getLogger().warning("Current: " + current + " | Latest: " + version);
getLogger().warning("§bDownload: https://www.spigotmc.org/resources/sloudchat.126174/"); getLogger().warning("Download: https://www.spigotmc.org/resources/sloudchat.126174/");
} else { } else {
getLogger().info("§aSloudChat is up to date (v" + current + ")."); getLogger().info("SloudChat is up to date (v" + current + ").");
} }
}); });

View file

@ -26,7 +26,7 @@ public class onPlayerChat1_16 implements Listener {
if(!plugin.isChatEnabled && !player.hasPermission("sloudpl.chat.bypass")){ if(!plugin.isChatEnabled && !player.hasPermission("sloudpl.chat.bypass")){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("disabled-chat-msg"))); player.sendMessage(ColorUtils.convertHexColors(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("disabled-chat-msg"))));
event.setCancelled(true); event.setCancelled(true);
return; return;