SteamWar/FightSystem
Archiviert
13
1

Not stable version

Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-02-23 17:53:31 +01:00
Ursprung 884be9beb3
Commit d2d126f02f
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -237,7 +237,7 @@ public class FightSystem extends JavaPlugin {
for(FightPlayer allFightPlayers : Fight.getRedTeam().getPlayers()) { for(FightPlayer allFightPlayers : Fight.getRedTeam().getPlayers()) {
allFightPlayers.getPlayer().getInventory().clear(); allFightPlayers.getPlayer().getInventory().clear();
} }
instance.getFightManager().teleportAllToFightSpawn(); getFightManager().teleportAllToFightSpawn();
WorldEdit.replace(Fight.getBlueTeam().getLeader().getPlayer(), team1cornerX, team1cornerY, team1cornerZ, team1cornerX + schemsizeX, team1cornerY + schemsizeY, team1cornerZ + schemsizeZ); WorldEdit.replace(Fight.getBlueTeam().getLeader().getPlayer(), team1cornerX, team1cornerY, team1cornerZ, team1cornerX + schemsizeX, team1cornerY + schemsizeY, team1cornerZ + schemsizeZ);
WorldEdit.replace(Fight.getRedTeam().getLeader().getPlayer(), team2cornerX, team2cornerY, team2cornerZ, team2cornerX + schemsizeX, team2cornerY + schemsizeY, team2cornerZ + schemsizeZ); WorldEdit.replace(Fight.getRedTeam().getLeader().getPlayer(), team2cornerX, team2cornerY, team2cornerZ, team2cornerX + schemsizeX, team2cornerY + schemsizeY, team2cornerZ + schemsizeZ);
} }
@ -267,7 +267,7 @@ public class FightSystem extends JavaPlugin {
} }
public void setSpectateState(FightTeam winFightTeam) { public void setSpectateState(FightTeam winFightTeam) {
if(this.fightState != FightState.RUNNING): if(this.fightState != FightState.RUNNING)
return; return;
this.fightState = FightState.SPECTATE; this.fightState = FightState.SPECTATE;

Datei anzeigen

@ -22,7 +22,7 @@ public class Region {
} }
public static boolean isIn2DRegion(Location location, int minX, int minZ, int maxX, int maxZ){ public static boolean isIn2DRegion(Location location, int minX, int minZ, int maxX, int maxZ){
return inRange(location.getBlockX(), minX, maxX, margin) && inRange(location.getBlockZ(), minZ, maxZ, margin); return inRange(location.getBlockX(), minX, maxX) && inRange(location.getBlockZ(), minZ, maxZ);
} }
public static boolean inRange(double value, int min, int max, int margin){ public static boolean inRange(double value, int min, int max, int margin){