Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Update Epicplugin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
staFF6773 authored Oct 12, 2023
1 parent 11551e7 commit cdc4d02
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/staff/main/Epicplugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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())));
}
}

Expand All @@ -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())));
}
}

Expand Down

0 comments on commit cdc4d02

Please sign in to comment.