geforkt von SteamWar/BungeeCore
Disabling labymod spam + synchronising port search
Dieser Commit ist enthalten in:
Ursprung
afc74d6a34
Commit
d1f2a195f3
@ -85,6 +85,7 @@ public class SubserverSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static int freePort(int start){
|
private static int freePort(int start){
|
||||||
|
synchronized (Subserver.getServerList()){
|
||||||
int port = start;
|
int port = start;
|
||||||
boolean isFree = false;
|
boolean isFree = false;
|
||||||
while(!isFree){
|
while(!isFree){
|
||||||
@ -99,4 +100,5 @@ public class SubserverSystem {
|
|||||||
}
|
}
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ public class LabyMod extends BasicListener {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Pair<Integer, String> value = readString(data, purpose.getKey());
|
Pair<Integer, String> value = readString(data, purpose.getKey());
|
||||||
BungeeCore.log(value.getValue());
|
|
||||||
List<Mod> mods = new LinkedList<>();
|
List<Mod> mods = new LinkedList<>();
|
||||||
|
|
||||||
try{
|
try{
|
||||||
@ -56,7 +55,6 @@ public class LabyMod extends BasicListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Utils.handleMods(player, mods);
|
Utils.handleMods(player, mods);
|
||||||
//TODO CCP & SHADOW
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Pair<Integer, String> readString(byte[] array, int startPos){
|
private Pair<Integer, String> readString(byte[] array, int startPos){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren