Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-24 23:30:15 +01:00
Fix plugin message pattern (#1448)
Dieser Commit ist enthalten in:
Ursprung
c7050565b8
Commit
0afcb893e3
@ -514,7 +514,7 @@ public class InventoryPackets {
|
|||||||
case "bungeecord:main":
|
case "bungeecord:main":
|
||||||
return null;
|
return null;
|
||||||
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 : null;
|
? old : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -719,7 +719,7 @@ public class InventoryPackets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getOldPluginChannelId(String newId) {
|
public static String getOldPluginChannelId(String newId) {
|
||||||
if (!newId.matches("([0-9a-z_.-]*:)?[0-9a-z_/.-]*")) {
|
if (!newId.matches("([0-9a-z_.-]+):([0-9a-z_/.-]+)")) {
|
||||||
return null; // Not valid
|
return null; // Not valid
|
||||||
}
|
}
|
||||||
int separatorIndex = newId.indexOf(':');
|
int separatorIndex = newId.indexOf(':');
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren