code cleanup; semi version independent
Dieser Commit ist enthalten in:
Ursprung
c463823c05
Commit
23a8f9ba84
@ -1,18 +0,0 @@
|
||||
package de.steamwar.fightsystem.fight;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Fight_10 {
|
||||
|
||||
private Fight_10() {}
|
||||
|
||||
static void hidePlayer(Player target, Player toHide) {
|
||||
Fight_8.hidePlayer(target, toHide);
|
||||
}
|
||||
|
||||
static void showPlayer(Player target, Player toShow) {
|
||||
Fight_8.showPlayer(target, toShow);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package de.steamwar.fightsystem.fight;
|
||||
|
||||
import de.steamwar.fightsystem.IFightSystem;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Fight_12 {
|
||||
|
||||
private Fight_12() {}
|
||||
|
||||
static void hidePlayer(Player target, Player toHide) {
|
||||
target.hidePlayer(IFightSystem.getPlugin(), toHide);
|
||||
}
|
||||
|
||||
static void showPlayer(Player target, Player toShow) {
|
||||
target.showPlayer(IFightSystem.getPlugin(), toShow);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package de.steamwar.fightsystem.fight;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Fight_14 {
|
||||
|
||||
private Fight_14() {}
|
||||
|
||||
static void hidePlayer(Player target, Player toHide) {
|
||||
Fight_12.hidePlayer(target, toHide);
|
||||
}
|
||||
|
||||
static void showPlayer(Player target, Player toShow) {
|
||||
Fight_12.showPlayer(target, toShow);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package de.steamwar.fightsystem.fight;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Fight_15 {
|
||||
|
||||
private Fight_15() {}
|
||||
|
||||
static void hidePlayer(Player target, Player toHide) {
|
||||
Fight_14.hidePlayer(target, toHide);
|
||||
}
|
||||
|
||||
static void showPlayer(Player target, Player toShow) {
|
||||
Fight_14.showPlayer(target, toShow);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package de.steamwar.fightsystem.fight;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Fight_8 {
|
||||
|
||||
private Fight_8() {}
|
||||
|
||||
static void hidePlayer(Player target, Player toHide) {
|
||||
target.hidePlayer(toHide);
|
||||
}
|
||||
|
||||
static void showPlayer(Player target, Player toShow) {
|
||||
target.showPlayer(toShow);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package de.steamwar.fightsystem.fight;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class Fight_9 {
|
||||
|
||||
private Fight_9() {}
|
||||
|
||||
static void hidePlayer(Player target, Player toHide) {
|
||||
Fight_8.hidePlayer(target, toHide);
|
||||
}
|
||||
|
||||
static void showPlayer(Player target, Player toShow) {
|
||||
Fight_8.showPlayer(target, toShow);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -93,32 +93,8 @@ public class Fight {
|
||||
if(gameMode == GameMode.SPECTATOR) {
|
||||
for(Player currentPlayer : Bukkit.getServer().getOnlinePlayers()) {
|
||||
if(currentPlayer.getUniqueId() != player.getUniqueId() && currentPlayer.getGameMode() == GameMode.SPECTATOR) {
|
||||
switch (Core.getVersion()) {
|
||||
case 8:
|
||||
Fight_8.hidePlayer(currentPlayer, player);
|
||||
Fight_8.hidePlayer(player, currentPlayer);
|
||||
break;
|
||||
case 9:
|
||||
Fight_9.hidePlayer(currentPlayer, player);
|
||||
Fight_9.hidePlayer(player, currentPlayer);
|
||||
break;
|
||||
case 10:
|
||||
Fight_10.hidePlayer(currentPlayer, player);
|
||||
Fight_10.hidePlayer(player, currentPlayer);
|
||||
break;
|
||||
case 14:
|
||||
Fight_14.hidePlayer(currentPlayer, player);
|
||||
Fight_14.hidePlayer(player, currentPlayer);
|
||||
break;
|
||||
case 15:
|
||||
Fight_15.hidePlayer(currentPlayer, player);
|
||||
Fight_15.hidePlayer(player, currentPlayer);
|
||||
break;
|
||||
default:
|
||||
Fight_12.hidePlayer(currentPlayer, player);
|
||||
Fight_12.hidePlayer(player, currentPlayer);
|
||||
break;
|
||||
}
|
||||
currentPlayer.hidePlayer(player);
|
||||
player.hidePlayer(currentPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -126,32 +102,8 @@ public class Fight {
|
||||
if(gameMode == GameMode.SURVIVAL) {
|
||||
for(Player currentPlayer : Bukkit.getServer().getOnlinePlayers()) {
|
||||
if(currentPlayer.getUniqueId() != player.getUniqueId() && currentPlayer.getGameMode() == GameMode.SPECTATOR) {
|
||||
switch (Core.getVersion()) {
|
||||
case 8:
|
||||
Fight_8.showPlayer(currentPlayer, player);
|
||||
Fight_8.showPlayer(player, currentPlayer);
|
||||
break;
|
||||
case 9:
|
||||
Fight_9.showPlayer(currentPlayer, player);
|
||||
Fight_9.showPlayer(player, currentPlayer);
|
||||
break;
|
||||
case 10:
|
||||
Fight_10.showPlayer(currentPlayer, player);
|
||||
Fight_10.showPlayer(player, currentPlayer);
|
||||
break;
|
||||
case 14:
|
||||
Fight_14.showPlayer(currentPlayer, player);
|
||||
Fight_14.showPlayer(player, currentPlayer);
|
||||
break;
|
||||
case 15:
|
||||
Fight_15.showPlayer(currentPlayer, player);
|
||||
Fight_15.showPlayer(player, currentPlayer);
|
||||
break;
|
||||
default:
|
||||
Fight_12.showPlayer(currentPlayer, player);
|
||||
Fight_12.showPlayer(player, currentPlayer);
|
||||
break;
|
||||
}
|
||||
currentPlayer.showPlayer(player);
|
||||
player.showPlayer(currentPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren