Fixing to real 1.7 simulation
Dieser Commit ist enthalten in:
Ursprung
acf812db22
Commit
b1721bce08
@ -84,6 +84,13 @@ public class SubserverSystem {
|
|||||||
MC_SCRIPT, "-a", m.name(), p.getName(), Integer.toString(port), map, "-1").sendPlayer(p);
|
MC_SCRIPT, "-a", m.name(), p.getName(), Integer.toString(port), map, "-1").sendPlayer(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void sendToHistoricTestServer(ProxiedPlayer p, ArenaMode m, String map){
|
||||||
|
int port = freePort(4000);
|
||||||
|
|
||||||
|
new Bauserver(p.getName() + "s Bau", p.getUniqueId(), port,
|
||||||
|
MC_SCRIPT, "-h", m.name(), p.getName(), Integer.toString(port), map, "-1").sendPlayer(p);
|
||||||
|
}
|
||||||
|
|
||||||
private static int freePort(int start){
|
private static int freePort(int start){
|
||||||
int port = start;
|
int port = start;
|
||||||
boolean isFree = false;
|
boolean isFree = false;
|
||||||
|
@ -196,6 +196,9 @@ public class BauCommand {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(mode == ArenaMode.WarGear7)
|
||||||
|
SubserverSystem.sendToHistoricTestServer(p, mode, FightCommand.getMap(p, mode, new String[0]));
|
||||||
|
else
|
||||||
SubserverSystem.sendToTestServer(p, mode, FightCommand.getMap(p, mode, new String[0]));
|
SubserverSystem.sendToTestServer(p, mode, FightCommand.getMap(p, mode, new String[0]));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren