Fix ModLoaderBlocker for Legacy API, if still used?
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
c4fcbdcb43
Commit
d46c89101d
@ -41,11 +41,16 @@ public class ModLoaderBlocker extends BasicListener {
|
|||||||
if(!(sender instanceof ProxiedPlayer))
|
if(!(sender instanceof ProxiedPlayer))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
ProxiedPlayer p = (ProxiedPlayer) sender;
|
||||||
|
if (e.getTag().equals("lunarclient:pm")) {
|
||||||
|
p.disconnect(Message.parseToComponent("MOD_LOADER_LUNAR_CLIENT", false, p));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!e.getTag().equals("minecraft:brand"))
|
if(!e.getTag().equals("minecraft:brand"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
String brand = new String(e.getData());
|
String brand = new String(e.getData());
|
||||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
|
||||||
if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){
|
if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){
|
||||||
if (!Storage.fabricCheckedPlayers.containsKey(p)) {
|
if (!Storage.fabricCheckedPlayers.containsKey(p)) {
|
||||||
Storage.fabricPlayers.add(p);
|
Storage.fabricPlayers.add(p);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren