Small fix
This commit is contained in:
parent
059ebd770b
commit
11ce126347
2 changed files with 5 additions and 5 deletions
|
@ -62,11 +62,11 @@ public final class SloudChat extends JavaPlugin {
|
|||
new UpdateChecker(this, 126174).getLatestVersion(version -> {
|
||||
String current = this.getDescription().getVersion();
|
||||
if (!current.equalsIgnoreCase(version)) {
|
||||
getLogger().warning("§cA new version of §eSloudChat §cis available!");
|
||||
getLogger().warning("§7Current: §e" + current + " §7| Latest: §a" + version);
|
||||
getLogger().warning("§bDownload: https://www.spigotmc.org/resources/sloudchat.126174/");
|
||||
getLogger().warning("A new version of SloudChat is available!");
|
||||
getLogger().warning("Current: " + current + " | Latest: " + version);
|
||||
getLogger().warning("Download: https://www.spigotmc.org/resources/sloudchat.126174/");
|
||||
} else {
|
||||
getLogger().info("§aSloudChat is up to date (v" + current + ").");
|
||||
getLogger().info("SloudChat is up to date (v" + current + ").");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public class onPlayerChat1_16 implements Listener {
|
|||
|
||||
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);
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue