Hotfix ConnectionListener for player join after round finish
Dieser Commit ist enthalten in:
Ursprung
3596bfc263
Commit
9b3abd29c8
@ -40,6 +40,7 @@ public class ConnectionListener extends BasicListener{
|
|||||||
public void onJoin(PlayerJoinEvent e) {
|
public void onJoin(PlayerJoinEvent e) {
|
||||||
e.getPlayer().setDisplayName("§7" + e.getPlayer().getName());
|
e.getPlayer().setDisplayName("§7" + e.getPlayer().getName());
|
||||||
e.getPlayer().setGameMode(GameMode.SPECTATOR);
|
e.getPlayer().setGameMode(GameMode.SPECTATOR);
|
||||||
|
e.getPlayer().teleport(MissileWars.getRedTeam().getSpawn().toVector().midpoint(MissileWars.getBlueTeam().getSpawn().toVector()).toLocation(e.getPlayer().getWorld()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren