geforkt von SteamWar/BungeeCore
Potential tp fix, added link descriptor, MWG 1.19 build servers
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
621c95b525
Commit
0e376456e8
@ -139,7 +139,9 @@ public class BauCommand extends BasicCommand {
|
|||||||
private static void versionSelector(ProxiedPlayer p, String[] args, int pos, Runnable run19, Runnable run15, Runnable run12, Runnable runElse) {
|
private static void versionSelector(ProxiedPlayer p, String[] args, int pos, Runnable run19, Runnable run15, Runnable run12, Runnable runElse) {
|
||||||
if(args.length <= pos) {
|
if(args.length <= pos) {
|
||||||
int version = p.getPendingConnection().getVersion();
|
int version = p.getPendingConnection().getVersion();
|
||||||
if(version > 340) { // Version > 1.12.2
|
if(version > 578) { // Version > 1.15.2
|
||||||
|
run19.run();
|
||||||
|
} else if(version > 340) { // Version > 1.12.2
|
||||||
run15.run();
|
run15.run();
|
||||||
} else {
|
} else {
|
||||||
run12.run();
|
run12.run();
|
||||||
@ -150,16 +152,14 @@ public class BauCommand extends BasicCommand {
|
|||||||
switch (args[pos].toLowerCase()) {
|
switch (args[pos].toLowerCase()) {
|
||||||
case "19":
|
case "19":
|
||||||
case "1.19":
|
case "1.19":
|
||||||
case "18":
|
case "mwg":
|
||||||
case "1.18":
|
case "miniwargear":
|
||||||
run19.run();
|
run19.run();
|
||||||
break;
|
break;
|
||||||
case "ws":
|
case "ws":
|
||||||
case "warship":
|
case "warship":
|
||||||
case "as":
|
case "as":
|
||||||
case "airship":
|
case "airship":
|
||||||
case "mwg":
|
|
||||||
case "miniwargear":
|
|
||||||
case "wg":
|
case "wg":
|
||||||
case "wargear":
|
case "wargear":
|
||||||
case "15":
|
case "15":
|
||||||
|
@ -27,8 +27,6 @@ import net.md_5.bungee.protocol.PacketWrapper;
|
|||||||
import net.md_5.bungee.protocol.ProtocolConstants;
|
import net.md_5.bungee.protocol.ProtocolConstants;
|
||||||
import net.md_5.bungee.protocol.packet.Chat;
|
import net.md_5.bungee.protocol.packet.Chat;
|
||||||
|
|
||||||
import java.time.Instant;
|
|
||||||
|
|
||||||
public class Chat19 extends Chat {
|
public class Chat19 extends Chat {
|
||||||
|
|
||||||
public static void chat(ProxiedPlayer p, String message) {
|
public static void chat(ProxiedPlayer p, String message) {
|
||||||
@ -44,7 +42,6 @@ public class Chat19 extends Chat {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Instant timestamp = Instant.now();
|
|
||||||
private final long salt = 0L;
|
private final long salt = 0L;
|
||||||
private final byte[] signature = new byte[0];
|
private final byte[] signature = new byte[0];
|
||||||
private final boolean signedPreview = false;
|
private final boolean signedPreview = false;
|
||||||
@ -59,7 +56,7 @@ public class Chat19 extends Chat {
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
|
|
||||||
writeString(getMessage(), buf);
|
writeString(getMessage(), buf);
|
||||||
buf.writeLong(timestamp.toEpochMilli());
|
buf.writeLong(System.currentTimeMillis());
|
||||||
buf.writeLong(salt);
|
buf.writeLong(salt);
|
||||||
writeArray(signature, buf);
|
writeArray(signature, buf);
|
||||||
buf.writeBoolean(signedPreview);
|
buf.writeBoolean(signedPreview);
|
||||||
|
@ -20,7 +20,7 @@ DISABLED=§cCurrently disabled.
|
|||||||
|
|
||||||
#ModLoader blocker
|
#ModLoader blocker
|
||||||
MODLOADER_INSTALLED=§7You play with §e{0} §7client. Therefore you can't join arenas.
|
MODLOADER_INSTALLED=§7You play with §e{0} §7client. Therefore you can't join arenas.
|
||||||
MODLOADER_INSTALLED_FABRIC=§7You play with §e{0} §7client. You can only join arenas with the SteamWar Modsender installed.
|
MODLOADER_INSTALLED_FABRIC=§7You play with §e{0} §7client. You can join arenas only with the FabricModSender https://steamwar.de/downloads installed.
|
||||||
MODLOADER_DENIED=§cYou cannot join arenas with Fabric and LiteLoader.
|
MODLOADER_DENIED=§cYou cannot join arenas with Fabric and LiteLoader.
|
||||||
|
|
||||||
#Help command
|
#Help command
|
||||||
|
@ -16,7 +16,7 @@ DISABLED=§cDerzeit deaktiviert.
|
|||||||
|
|
||||||
#ModLoader blocker
|
#ModLoader blocker
|
||||||
MODLOADER_INSTALLED=§7Du spielst mit §e{0} §7Client. Daher kannst du keinen Arenen beitreten.
|
MODLOADER_INSTALLED=§7Du spielst mit §e{0} §7Client. Daher kannst du keinen Arenen beitreten.
|
||||||
MODLOADER_INSTALLED_FABRIC=§7Du spielst mit §e{0} §7Client. Nur mit dem SteamWarModSender kannst du Arenen beitreten.
|
MODLOADER_INSTALLED_FABRIC=§7Du spielst mit §e{0} §7Client. Nur mit dem FabricModSender https://steamwar.de/downloads kannst du Arenen beitreten.
|
||||||
MODLOADER_DENIED=§cMit Fabric und LiteLoader kannst du keinen Arenen beitreten.
|
MODLOADER_DENIED=§cMit Fabric und LiteLoader kannst du keinen Arenen beitreten.
|
||||||
|
|
||||||
#Help command
|
#Help command
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren