geforkt von SteamWar/BungeeCore
Fix ModLoaderBlocker for Legacy API, if still used?
Dieser Commit ist enthalten in:
Ursprung
c4fcbdcb43
Commit
d46c89101d
@ -41,11 +41,16 @@ public class ModLoaderBlocker extends BasicListener {
|
||||
if(!(sender instanceof ProxiedPlayer))
|
||||
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"))
|
||||
return;
|
||||
|
||||
String brand = new String(e.getData());
|
||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
||||
if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){
|
||||
if (!Storage.fabricCheckedPlayers.containsKey(p)) {
|
||||
Storage.fabricPlayers.add(p);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren