Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowkuu committed May 26, 2017
1 parent 3a3ff1f commit ef0ed1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TemporaryDestruction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void Update()
if (timer >= 1)
{
DateTime actually = DateTime.Now;
if (actually > one_date && actually < second_date)
if (!(actually > one_date && actually < second_date))
{
if (secured == true)
{
Expand All @@ -64,7 +64,7 @@ public void Update()
if (secured == false)
{
secured = true;
UnturnedChat.Say(Translations.Instance.Translate("protection_enabled"), Color.red);
UnturnedChat.Say(Translations.Instance.Translate("protection_enabled", Configuration.Instance.TimeFrom.Remove(5), Configuration.Instance.TimeTo.Remove(5)), Color.red);
Provider.modeConfigData.Structures.Armor_Multiplier = 0;
Provider.modeConfigData.Barricades.Armor_Multiplier = 0;
}
Expand All @@ -81,7 +81,7 @@ public override TranslationList DefaultTranslations
return new TranslationList()
{
{"protection_disabled","Structure protection has been disabled."},
{"protection_enabled","Structure protection has been enabled and it runs from 23:00 to 10:00."},
{"protection_enabled","Structure protection has been enabled and it runs from {0} to {1}."},
};
}
}
Expand Down

0 comments on commit ef0ed1a

Please sign in to comment.