Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Merge pull request #914 from Pokechu22/wdl-channels
Remap WDL plugin channels
Dieser Commit ist enthalten in:
Commit
6d959169fa
@ -575,6 +575,12 @@ public class InventoryPackets {
|
|||||||
return "minecraft:unregister";
|
return "minecraft:unregister";
|
||||||
case "BungeeCord":
|
case "BungeeCord":
|
||||||
return "bungeecord:main";
|
return "bungeecord:main";
|
||||||
|
case "WDL|INIT":
|
||||||
|
return "wdl:init";
|
||||||
|
case "WDL|CONTROL":
|
||||||
|
return "wdl:init";
|
||||||
|
case "WDL|REQUEST":
|
||||||
|
return "wdl:request";
|
||||||
default:
|
default:
|
||||||
return old.matches("[0-9a-z_-]+:[0-9a-z_/.-]+") // Identifier regex
|
return old.matches("[0-9a-z_-]+:[0-9a-z_/.-]+") // Identifier regex
|
||||||
? old
|
? old
|
||||||
@ -593,6 +599,12 @@ public class InventoryPackets {
|
|||||||
return "MC|Brand";
|
return "MC|Brand";
|
||||||
case "bungeecord:main":
|
case "bungeecord:main":
|
||||||
return "BungeeCord";
|
return "BungeeCord";
|
||||||
|
case "wdl:init":
|
||||||
|
return "WDL|INIT";
|
||||||
|
case "wdl:control":
|
||||||
|
return "WDL|CONTROL";
|
||||||
|
case "wdl:request":
|
||||||
|
return "WDL|REQUEST";
|
||||||
default:
|
default:
|
||||||
return newId.startsWith("viaversion:legacy/")
|
return newId.startsWith("viaversion:legacy/")
|
||||||
? new String(BaseEncoding.base32().lowerCase().withPadChar('-').decode(
|
? new String(BaseEncoding.base32().lowerCase().withPadChar('-').decode(
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren