SteamWar/MissileWars
Archiviert
13
0

Hotfix /challenge Bug

Dieser Commit ist enthalten in:
jojo 2020-12-20 13:56:33 +01:00
Ursprung d754275a1c
Commit ca58d5c521

Datei anzeigen

@ -37,7 +37,14 @@ public class JoinListener extends BasicListener {
@EventHandler(priority = EventPriority.HIGHEST) @EventHandler(priority = EventPriority.HIGHEST)
public void onJoin(PlayerJoinEvent e){ public void onJoin(PlayerJoinEvent e){
e.setJoinMessage("§a» " + e.getPlayer().getDisplayName()); e.setJoinMessage("§a» " + e.getPlayer().getDisplayName());
if (Config.isChallenge()) return; if (Config.isChallenge()) {
if (Config.RedLeader.equals(e.getPlayer().getUniqueId())) {
MissileWars.getRedTeam().join(e.getPlayer());
} else if (Config.BlueLeader.equals(e.getPlayer().getUniqueId())) {
MissileWars.getBlueTeam().join(e.getPlayer());
}
return;
}
MissileWars.join(e.getPlayer()); MissileWars.join(e.getPlayer());
} }