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