Dieser Commit ist enthalten in:
Ursprung
d0e4690b8d
Commit
c367f11120
@ -48,7 +48,7 @@ public class Fabric extends BasicListener {
|
|||||||
|
|
||||||
private final Set<String> neededMods = new HashSet<>();
|
private final Set<String> neededMods = new HashSet<>();
|
||||||
|
|
||||||
private static final Map<ProxiedPlayer, Integer> checkedPlayers = new HashMap<>();
|
public static final Map<ProxiedPlayer, Integer> checkedPlayers = new HashMap<>();
|
||||||
private static final Map<ProxiedPlayer, Long> expectPluginMessage = new HashMap<>();
|
private static final Map<ProxiedPlayer, Long> expectPluginMessage = new HashMap<>();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -46,12 +46,16 @@ public class ModLoaderBlocker extends BasicListener {
|
|||||||
|
|
||||||
if(new String(e.getData()).contains("fabric")){
|
if(new String(e.getData()).contains("fabric")){
|
||||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
ProxiedPlayer p = (ProxiedPlayer) sender;
|
||||||
Storage.fabricPlayers.add(p);
|
if (!Fabric.checkedPlayers.containsKey(p) && !Storage.fabricPlayers.contains(p)) {
|
||||||
Message.send("MODLOADER_INSTALLED", p, "Fabric");
|
Storage.fabricPlayers.add(p);
|
||||||
|
Message.send("MODLOADER_INSTALLED_FABRIC", p, "Fabric");
|
||||||
|
}
|
||||||
}else if(new String(e.getData()).contains("LiteLoader")) {
|
}else if(new String(e.getData()).contains("LiteLoader")) {
|
||||||
ProxiedPlayer p = (ProxiedPlayer) sender;
|
ProxiedPlayer p = (ProxiedPlayer) sender;
|
||||||
Storage.fabricPlayers.add(p);
|
if (!Storage.fabricPlayers.contains(p)) {
|
||||||
Message.send("MODLOADER_INSTALLED", p, "LiteLoader");
|
Storage.fabricPlayers.add(p);
|
||||||
|
Message.send("MODLOADER_INSTALLED", p, "LiteLoader");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ DEV_UNKNOWN_SERVER=§cBitte gib einen DevServer an.
|
|||||||
|
|
||||||
#ModLoader blocker
|
#ModLoader blocker
|
||||||
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
||||||
|
MODLOADER_INSTALLED_FABRIC=§7Du hast §e{0} §7installiert. Mit dem SteamWarModSender kannst du Arenen beitreten.
|
||||||
MODLOADER_DENIED=§cMit Fabric, Forge und LiteLoader kannst du keinen Arenen beitreten.
|
MODLOADER_DENIED=§cMit Fabric, Forge und LiteLoader kannst du keinen Arenen beitreten.
|
||||||
|
|
||||||
#Help command
|
#Help command
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren