Archiviert
1
0

Hotfix forge disconnect

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-02-06 17:52:16 +01:00
Ursprung 9ca14b7565
Commit 50ee5c6e95

Datei anzeigen

@ -137,8 +137,10 @@ public class Forge extends BasicListener {
} }
PendingConnection connection = event.getConnection(); PendingConnection connection = event.getConnection();
if(Utils.handleMods(connection.getUniqueId(), Locale.getDefault(), connection::disconnect, mods)) if(!Utils.handleMods(connection.getUniqueId(), Locale.getDefault(), event::setCancelReason, mods)) {
event.completeIntent(BungeeCore.get()); event.setCancelled(true);
}
event.completeIntent(BungeeCore.get());
} }
} }
} }