Impassable Gatepass – Military Access Required
This is an altered version of Alex Zhao’s Impassable Gatepass mod. The logic has been modified so that only factions with military access agreements (as well as vassals/coalition/alliance members) can pass through gate passes. Neutral armies without military access agreements with you attempting to trespass through a gatepass will trigger a dilemma that will alter your diplomatic relationship with them, and in some scenarios, trigger war.
Note that this mod works for both player and AI. Players cannot trespass through AI gate passes without military access. AI also cannot trespass against other AI factions (this may trigger war between AI factions)
Original Impassable Gatepass Mod: https://steamcommunity.com/sharedfiles/filedetails/?id=3350180080