Hotfix /challenge Bug
Dieser Commit ist enthalten in:
Ursprung
d754275a1c
Commit
ca58d5c521
@ -37,7 +37,14 @@ public class JoinListener extends BasicListener {
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onJoin(PlayerJoinEvent e){
|
||||
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());
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren