geforkt von SteamWar/BungeeCore
Hotfix forge disconnect
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
9ca14b7565
Commit
50ee5c6e95
@ -137,8 +137,10 @@ public class Forge extends BasicListener {
|
||||
}
|
||||
|
||||
PendingConnection connection = event.getConnection();
|
||||
if(Utils.handleMods(connection.getUniqueId(), Locale.getDefault(), connection::disconnect, mods))
|
||||
event.completeIntent(BungeeCore.get());
|
||||
if(!Utils.handleMods(connection.getUniqueId(), Locale.getDefault(), event::setCancelReason, mods)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
event.completeIntent(BungeeCore.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren