SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-12-19 11:36:06 +01:00
Ursprung 0b69a39747
Commit bbc18de42e

Datei anzeigen

@ -125,8 +125,8 @@ public class Fight {
if(gameMode == GameMode.SPECTATOR) { if(gameMode == GameMode.SPECTATOR) {
for(Player currentPlayer : Bukkit.getServer().getOnlinePlayers()) { for(Player currentPlayer : Bukkit.getServer().getOnlinePlayers()) {
if(currentPlayer.getUniqueId() != player.getUniqueId() && currentPlayer.getGameMode() == GameMode.SPECTATOR) { if(currentPlayer.getUniqueId() != player.getUniqueId() && currentPlayer.getGameMode() == GameMode.SPECTATOR) {
currentPlayer.hidePlayer(FightSystem.getPlugin(), player); currentPlayer.hidePlayer(player);
player.hidePlayer(FightSystem.getPlugin(), currentPlayer); player.hidePlayer(currentPlayer);
} }
} }
@ -150,8 +150,8 @@ public class Fight {
}else if(gameMode == GameMode.SURVIVAL) { }else if(gameMode == GameMode.SURVIVAL) {
for(Player currentPlayer : Bukkit.getServer().getOnlinePlayers()) { for(Player currentPlayer : Bukkit.getServer().getOnlinePlayers()) {
if(currentPlayer.getUniqueId() != player.getUniqueId() && currentPlayer.getGameMode() == GameMode.SPECTATOR) { if(currentPlayer.getUniqueId() != player.getUniqueId() && currentPlayer.getGameMode() == GameMode.SPECTATOR) {
currentPlayer.showPlayer(FightSystem.getPlugin(), player); currentPlayer.showPlayer(player);
player.showPlayer(FightSystem.getPlugin(), currentPlayer); player.showPlayer(currentPlayer);
} }
} }
} }