If you wish to copy and paste, the finished example is: On.RegionGate.customOEGateRequirements += RegionGate_customOEGateRequirements; private bool RegionGate_customOEGateRequirements( On.RegionGate.orig_customOEGateRequirements orig, RegionGate self) { Player player = self.room?.game?.FirstRealizedPlayer; if (player != null && player.slugcatStats.name.value == "slugcatidhere") { return true; } return orig(self); }
[ NOTES ] - If you come across any issues with this code, please let me know and comment down below with what specific issue your having! Before commenting, ensure that the slugcat id is the same both in code and in their json file assuming your using slugbase.