geforkt von SteamWar/BungeeCore
Merge pull request 'Add ModLoaderBlocker for lunar client' (#487) from LunarClient into master
Reviewed-on: SteamWar/BungeeCore#487 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
69720bfbd8
@ -41,15 +41,22 @@ 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());
|
||||||
if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){
|
if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){
|
||||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
|
||||||
if (!Storage.fabricCheckedPlayers.containsKey(p)) {
|
if (!Storage.fabricCheckedPlayers.containsKey(p)) {
|
||||||
Storage.fabricPlayers.add(p);
|
Storage.fabricPlayers.add(p);
|
||||||
}
|
}
|
||||||
|
} else if (brand.contains("lunar")) {
|
||||||
|
p.disconnect(Message.parseToComponent("MOD_LOADER_LUNAR_CLIENT", false, p));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,6 +116,8 @@ MOD_RED_PLUR=Attempted use of mods:\n{0}
|
|||||||
MOD_YELLOW_SING=§7Deactivate the mod §e{0}§7 to continue playing on §eSteam§8War§7.
|
MOD_YELLOW_SING=§7Deactivate the mod §e{0}§7 to continue playing on §eSteam§8War§7.
|
||||||
MOD_YELLOW_PLUR=§7Deactivate the mods\n§e{0}\n§7to continue playing on §eSteam§8War§7.
|
MOD_YELLOW_PLUR=§7Deactivate the mods\n§e{0}\n§7to continue playing on §eSteam§8War§7.
|
||||||
|
|
||||||
|
MOD_LOADER_LUNAR_CLIENT=§eLunar Client§7 is not supported on §eSteam§8War§7.
|
||||||
|
|
||||||
MOD_USE_MODSENDER=§cPlease use the §c§lFabricModSender§c (https://steamwar.de/downloads/) or remove the mod that is rebranding your installation.
|
MOD_USE_MODSENDER=§cPlease use the §c§lFabricModSender§c (https://steamwar.de/downloads/) or remove the mod that is rebranding your installation.
|
||||||
|
|
||||||
#Various commands
|
#Various commands
|
||||||
|
@ -102,6 +102,8 @@ MOD_RED_PLUR=Versuchte Benutzung der Mods:\n{0}
|
|||||||
MOD_YELLOW_SING=§7Deaktiviere den Mod §e{0}§7, um weiter auf §eSteam§8War §7spielen zu können.
|
MOD_YELLOW_SING=§7Deaktiviere den Mod §e{0}§7, um weiter auf §eSteam§8War §7spielen zu können.
|
||||||
MOD_YELLOW_PLUR=§7Deaktiviere die Mods\n§e{0}\n§7um weiter auf §eSteam§8War §7spielen zu können.
|
MOD_YELLOW_PLUR=§7Deaktiviere die Mods\n§e{0}\n§7um weiter auf §eSteam§8War §7spielen zu können.
|
||||||
|
|
||||||
|
MOD_LOADER_LUNAR_CLIENT=§eLunar Client§7 ist auf §eSteam§8War§7 nicht unterstützt.
|
||||||
|
|
||||||
MOD_USE_MODSENDER=§cBitte nutze den §c§lFabricModSender§c (https://steamwar.de/downloads/) oder entferne den Mod, der deine Fabric-Installation tarnt.
|
MOD_USE_MODSENDER=§cBitte nutze den §c§lFabricModSender§c (https://steamwar.de/downloads/) oder entferne den Mod, der deine Fabric-Installation tarnt.
|
||||||
|
|
||||||
#Various commands
|
#Various commands
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren