geforkt von SteamWar/BungeeCore
Reduce Brand Info
Dieser Commit ist enthalten in:
Ursprung
ea9a98ec11
Commit
ead209af0a
@ -47,7 +47,6 @@ public class BrandListener extends BasicListener {
|
|||||||
|
|
||||||
BungeeCore.get().getProxy().getScheduler().schedule(BungeeCore.get(), () -> {
|
BungeeCore.get().getProxy().getScheduler().schedule(BungeeCore.get(), () -> {
|
||||||
ProxiedPlayer player = (ProxiedPlayer) event.getReceiver();
|
ProxiedPlayer player = (ProxiedPlayer) event.getReceiver();
|
||||||
SteamwarUser user = SteamwarUser.get(player);
|
|
||||||
|
|
||||||
String channel = player.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_13 ? "minecraft:brand" : "MC|Brand";
|
String channel = player.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_13 ? "minecraft:brand" : "MC|Brand";
|
||||||
StringBuilder serverBrand = new StringBuilder();
|
StringBuilder serverBrand = new StringBuilder();
|
||||||
@ -55,7 +54,7 @@ public class BrandListener extends BasicListener {
|
|||||||
serverBrand.append((char) b);
|
serverBrand.append((char) b);
|
||||||
}
|
}
|
||||||
|
|
||||||
String brandString = Message.parse("STEAMWAR_BRAND", player, user.getUserGroup().getColorCode(), player.getName(), BungeeCore.get().getProxy().getName(), player.getServer().getInfo().getName(), serverBrand.substring(1));
|
String brandString = Message.parse("STEAMWAR_BRAND", player, BungeeCore.get().getProxy().getName(), player.getServer().getInfo().getName(), serverBrand.substring(1));
|
||||||
|
|
||||||
ByteBuf brand = ByteBufAllocator.DEFAULT.heapBuffer();
|
ByteBuf brand = ByteBufAllocator.DEFAULT.heapBuffer();
|
||||||
DefinedPacket.writeString(brandString, brand);
|
DefinedPacket.writeString(brandString, brand);
|
||||||
|
@ -7,7 +7,7 @@ UNKNOWN_PLAYER=§cDiesen Spieler gibt es nicht.
|
|||||||
UNKNOWN_TEAM=§cDieses Team gibt es nicht.
|
UNKNOWN_TEAM=§cDieses Team gibt es nicht.
|
||||||
INVALID_TIME=§cUngültige Zeitangabe.
|
INVALID_TIME=§cUngültige Zeitangabe.
|
||||||
|
|
||||||
STEAMWAR_BRAND={0}{1} §r<- §eSteam§8War.de §7({2}) §r<- §e{3} §7({4})§r
|
STEAMWAR_BRAND=§eSteam§8War.de §7({2}) §r<- §e{3} §7({4})§r
|
||||||
|
|
||||||
#ModLoader blocker
|
#ModLoader blocker
|
||||||
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren