Add ModLoaderBlocker for lunar client #487
@ -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