From f2a542aac4ed40a5250cef187adaa1acf927e8a1 Mon Sep 17 00:00:00 2001 From: MCrow Date: Fri, 27 Sep 2024 19:48:56 +0200 Subject: [PATCH] Set AllowCave to true and hide this option by default --- Teleportation/Teleportation.csproj | 2 +- Teleportation/TeleportationConfiguration.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Teleportation/Teleportation.csproj b/Teleportation/Teleportation.csproj index 2eab9f6..45fb4df 100644 --- a/Teleportation/Teleportation.csproj +++ b/Teleportation/Teleportation.csproj @@ -4,7 +4,7 @@ net48 latest RestoreMonarchy.Teleportation - 1.8.0 + 1.8.1 diff --git a/Teleportation/TeleportationConfiguration.cs b/Teleportation/TeleportationConfiguration.cs index 3eaa080..414b97f 100644 --- a/Teleportation/TeleportationConfiguration.cs +++ b/Teleportation/TeleportationConfiguration.cs @@ -8,7 +8,8 @@ public class TeleportationConfiguration : IRocketPluginConfiguration public double TPACooldown { get; set; } public double TPADelay { get; set; } public double TPADuration { get; set; } - public bool AllowCave { get; set; } + public bool AllowCave { get; set; } = true; + public bool ShouldSerializeAllowCave() => !AllowCave; public bool AllowRaid { get; set; } public double RaidDuration { get; set; } public bool AllowCombat { get; set; } @@ -23,7 +24,7 @@ public void LoadDefaults() TPACooldown = 90; TPADelay = 3; TPADuration = 90; - AllowCave = false; + AllowCave = true; AllowRaid = false; RaidDuration = 30; AllowCombat = false;