geforkt von SteamWar/BungeeCore
Update some stuff
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,14 +46,18 @@ 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;
|
||||||
|
if (!Fabric.checkedPlayers.containsKey(p) && !Storage.fabricPlayers.contains(p)) {
|
||||||
Storage.fabricPlayers.add(p);
|
Storage.fabricPlayers.add(p);
|
||||||
Message.send("MODLOADER_INSTALLED", p, "Fabric");
|
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;
|
||||||
|
if (!Storage.fabricPlayers.contains(p)) {
|
||||||
Storage.fabricPlayers.add(p);
|
Storage.fabricPlayers.add(p);
|
||||||
Message.send("MODLOADER_INSTALLED", p, "LiteLoader");
|
Message.send("MODLOADER_INSTALLED", p, "LiteLoader");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onDisconnect(PlayerDisconnectEvent e){
|
public void onDisconnect(PlayerDisconnectEvent e){
|
||||||
|
@ -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