public static bool UpdateSafeZoneEnabledPatch(MySafeZoneComponent __instance, MySafeZone safeZone, bool activate) { Log.Info($"{nameof(MySafeZoneComponentPatch)}.{nameof(UpdateSafeZoneEnabledPatch)}({activate})"); return(Plugin.PermitsPlayerSafeZone(__instance.Entity, activate)); }
static bool OnSafezoneCreateRemovePatch(MySafeZoneComponent __instance, bool turnOnSafeZone) { Log.Info($"{nameof(MySafeZoneComponentPatch)}.{nameof(OnSafezoneCreateRemovePatch)}({turnOnSafeZone})"); return(Plugin.PermitsPlayerSafeZone(__instance.Entity, turnOnSafeZone)); }