geforkt von SteamWar/BungeeCore
Fix pr stuff
Dieser Commit ist enthalten in:
Ursprung
b744f5286f
Commit
383cd6097c
@ -614,6 +614,7 @@ public class TeamCommand extends BasicCommand {
|
|||||||
}
|
}
|
||||||
team.setAddress(server);
|
team.setAddress(server);
|
||||||
team.setPort(port);
|
team.setPort(port);
|
||||||
|
Storage.teamServers.remove(team.getTeamId());
|
||||||
Message.send("TEAM_SERVER_SET", player);
|
Message.send("TEAM_SERVER_SET", player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ import net.md_5.bungee.util.AddressUtil;
|
|||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
public class SubserverProtocolFixer extends BasicListener {
|
public class SubserverProtocolFixer extends BasicListener {
|
||||||
|
|
||||||
@ -40,8 +41,8 @@ public class SubserverProtocolFixer extends BasicListener {
|
|||||||
try {
|
try {
|
||||||
field = InitialHandler.class.getDeclaredField("extraDataInHandshake");
|
field = InitialHandler.class.getDeclaredField("extraDataInHandshake");
|
||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
} catch (Exception e) {
|
} catch (NoSuchFieldException e) {
|
||||||
// ignore
|
BungeeCord.getInstance().getLogger().log(Level.SEVERE, e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,8 +56,8 @@ public class SubserverProtocolFixer extends BasicListener {
|
|||||||
extraData += "\00" + BungeeCord.getInstance().gson.toJson(properties);
|
extraData += "\00" + BungeeCord.getInstance().gson.toJson(properties);
|
||||||
}
|
}
|
||||||
field.set(initialHandler, extraData);
|
field.set(initialHandler, extraData);
|
||||||
} catch (Exception ex) {
|
} catch (IllegalAccessException ex) {
|
||||||
// ignore
|
BungeeCord.getInstance().getLogger().log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -463,9 +463,9 @@ TEAM_EVENT_HOW_TO_LEAVE=§7Um die Teilnahme abzusagen, wiederhole den Befehl
|
|||||||
TEAM_COLOR_TITLE=Farbe wählen
|
TEAM_COLOR_TITLE=Farbe wählen
|
||||||
|
|
||||||
#Team Server
|
#Team Server
|
||||||
TEAM_SERVER_USAGE=§8/§7team server §8[§eIP/Address§8] §8(§7Port§8) §8- §7Setzt Addresse des Teamservers.
|
TEAM_SERVER_USAGE=§8/§7team server §8[§eIP/Adresse§8] §8(§7Port§8) §8- §7Setzt Adresse des Teamservers.
|
||||||
TEAM_SERVER_SET=§7Du hast die Teamserveradresse geändert§8!
|
TEAM_SERVER_SET=§7Du hast die Teamserveradresse geändert§8!
|
||||||
TEAM_SERVER_PORT_INVALID=§cDer Port muss eine Zahl sein.
|
TEAM_SERVER_PORT_INVALID=§cUnmögliche Portnummer.
|
||||||
TEAM_NO_ADDRESS=§cTeamserveradresse nicht gesetzt.
|
TEAM_NO_ADDRESS=§cTeamserveradresse nicht gesetzt.
|
||||||
TEAM_TP_NO_TEAM=§cUnbekanntes Team.
|
TEAM_TP_NO_TEAM=§cUnbekanntes Team.
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren