Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
6735bf4d6a
Commit
978fd1abe0
@ -1 +1 @@
|
||||
Subproject commit 89b0c14da664589a7c9699d73bf72028cdf9dd0d
|
||||
Subproject commit aa70f423d87e9f6534ad2dd1f20a5122179c423f
|
@ -44,13 +44,14 @@ public class ModLoaderBlocker extends BasicListener {
|
||||
if(!e.getTag().equals("minecraft:brand"))
|
||||
return;
|
||||
|
||||
if(new String(e.getData()).contains("fabric")){
|
||||
String brand = new String(e.getData());
|
||||
if(brand.contains("fabric") || brand.contains("quilt")){
|
||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
||||
if (!Storage.fabricCheckedPlayers.containsKey(p) && !Storage.fabricPlayers.contains(p)) {
|
||||
Storage.fabricPlayers.add(p);
|
||||
Message.send("MODLOADER_INSTALLED_FABRIC", p, "Fabric");
|
||||
}
|
||||
}else if(new String(e.getData()).contains("LiteLoader")) {
|
||||
}else if(brand.contains("LiteLoader")) {
|
||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
||||
if (!Storage.fabricPlayers.contains(p)) {
|
||||
Storage.fabricPlayers.add(p);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren