Simplify MissileWars
Dieser Commit ist enthalten in:
Ursprung
411d602a99
Commit
842b5ead20
@ -99,7 +99,7 @@ public class MissileWars extends JavaPlugin {
|
||||
fightState = FightState.END;
|
||||
StateDependent.setupState(fightState);
|
||||
|
||||
for(Player player : Bukkit.getOnlinePlayers()){
|
||||
for(Player player : Bukkit.getOnlinePlayers()) {
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_ENDER_DRAGON_DEATH, 100f, 1f);
|
||||
player.setGameMode(GameMode.SPECTATOR);
|
||||
}
|
||||
@ -123,15 +123,15 @@ public class MissileWars extends JavaPlugin {
|
||||
return fightState;
|
||||
}
|
||||
|
||||
public static MWTeam getRedTeam(){
|
||||
public static MWTeam getRedTeam() {
|
||||
return redTeam;
|
||||
}
|
||||
|
||||
public static MWTeam getBlueTeam(){
|
||||
public static MWTeam getBlueTeam() {
|
||||
return blueTeam;
|
||||
}
|
||||
|
||||
public static MWTeam getTeam(Player p){
|
||||
public static MWTeam getTeam(Player p) {
|
||||
if(blueTeam.hasPlayer(p))
|
||||
return blueTeam;
|
||||
if(redTeam.hasPlayer(p))
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren