Hotfix /challenge Bug
Dieser Commit ist enthalten in:
Ursprung
ca58d5c521
Commit
1799b1b91a
@ -162,6 +162,10 @@ public class MissileWars extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
public static void spectateJoin(Player p) {
|
||||
p.teleport(MissileWars.getRedTeam().getSpawn().toVector().midpoint(MissileWars.getBlueTeam().getSpawn().toVector()).toLocation(p.getWorld()));
|
||||
}
|
||||
|
||||
public static void leave(Player p) {
|
||||
MissileWars.getBlueTeam().leave(p);
|
||||
MissileWars.getRedTeam().leave(p);
|
||||
|
@ -42,6 +42,8 @@ public class JoinListener extends BasicListener {
|
||||
MissileWars.getRedTeam().join(e.getPlayer());
|
||||
} else if (Config.BlueLeader.equals(e.getPlayer().getUniqueId())) {
|
||||
MissileWars.getBlueTeam().join(e.getPlayer());
|
||||
} else {
|
||||
MissileWars.spectateJoin(e.getPlayer());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren