From cdc4d029a75eb405064d69cc7b078ad4701449ab Mon Sep 17 00:00:00 2001 From: staFF6773 <108166164+staFF6773@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:26:11 -0600 Subject: [PATCH] Update Epicplugin.java --- src/main/java/staff/main/Epicplugin.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/staff/main/Epicplugin.java b/src/main/java/staff/main/Epicplugin.java index 13f4c15..2c388fa 100644 --- a/src/main/java/staff/main/Epicplugin.java +++ b/src/main/java/staff/main/Epicplugin.java @@ -27,11 +27,11 @@ public final class Epicplugin extends JavaPlugin implements Listener { @Override //INICIO DE PLUGIN public void onEnable() { - checkforupdates = new checkforupdates(this, "https://api.spigotmc.org/legacy/update.php?resource=112887"); // no tocar esto porfavor + checkforupdates = new checkforupdates(this, "https://api.spigotmc.org/legacy/update.php?resource=112887"); checkforupdates.iniciarVerificacionDeActualizaciones(); - prefix = getConfig().getString("prefix", "&f[&bEpicPlugin&f]"); + prefix = ChatColor.translateAlternateColorCodes('&', getConfig().getString("prefix", "&f[&bEpicPlugin&f]")); plugin = this; @@ -68,7 +68,8 @@ public void joinserver(PlayerJoinEvent e) { Player player = e.getPlayer(); String playerJoin = "PlayerJoin"; e.setJoinMessage(ChatColor.translateAlternateColorCodes( - '&', this.getConfig().getString(playerJoin).replace("{player_Name}", player.getName()))); + '&', this.getConfig().getString(playerJoin) + .replace("{player_Name}", player.getName()))); } } @@ -78,7 +79,8 @@ public void leaveServer(PlayerQuitEvent e) { Player player = e.getPlayer(); String playerLeave = "PlayerLeave"; e.setQuitMessage(ChatColor.translateAlternateColorCodes( - '&', this.getConfig().getString(playerLeave).replace("{player_Name}", player.getName()))); + '&', this.getConfig().getString(playerLeave) + .replace("{player_Name}", player.getName()))); } }