diff --git a/ServerTools/Changelog.txt b/ServerTools/Changelog.txt index cdfeeb55..dee175c1 100644 --- a/ServerTools/Changelog.txt +++ b/ServerTools/Changelog.txt @@ -21,17 +21,25 @@ Vote to mute system... Chat command /travel will teleport the player's minibike if they are riding it when command is used... Auto respawn traders... Who console command to see who was in an area you are standing in... +Add missing phrases to phrase list... * -v.6.2 In process... -Added a readme.xml explaining how to use each module within ServerTools... +v.6.3 In process... +Added a HowTo.xml explaining how to use each tool within ServerTools. Can be found in the same folder as the config file... Added Coin and Market system... Added custom command delays... Added chat command /top3. Shows the server's top 3 players. PvE = Zkills - deaths. PvP = Zkills + player kills - deaths... Added Weather Control vote system... +v.6.2 +Added console command to reset home and home2 delay of a specific player +Changed home and home2 chat commands to share the same delay to avoid exploiting +Changed sethome and sethome2 to not work while in a protected zone +Fixed chat command triggers +Fixed home2, sethome2, delhome2 not working with only donors when the option is set to true + v.6.1 -Fixed VoteReward.xml missing after activation. +Fixed VoteReward.xml missing after activation v.6.0 Added Stopserver ten second countdown option. During a shutdown, this will enable a warning at 10 seconds left and a countdown from 5 to 1 seconds diff --git a/ServerTools/ModInfo.xml b/ServerTools/ModInfo.xml index e02d26d9..2a4d84ca 100644 --- a/ServerTools/ModInfo.xml +++ b/ServerTools/ModInfo.xml @@ -4,7 +4,7 @@ - + diff --git a/ServerTools/ServerTools.csproj b/ServerTools/ServerTools.csproj index e2e47f0f..98142699 100644 --- a/ServerTools/ServerTools.csproj +++ b/ServerTools/ServerTools.csproj @@ -77,6 +77,7 @@ + @@ -92,6 +93,7 @@ + @@ -153,6 +155,7 @@ Resources.Designer.cs + "); @@ -650,7 +650,7 @@ public static void UpdateXml() string _phrase609; if (!Dict.TryGetValue(609, out _phrase609)) { - _phrase609 = "{PlayerName} you can only use /home2 once every {DelayBetweenUses} minutes. Time remaining: {TimeRemaining} minutes."; + _phrase609 = "{PlayerName} you can only use /home or /home2 once every {DelayBetweenUses} minutes. Time remaining: {TimeRemaining} minutes."; } sw.WriteLine(string.Format(" ", _phrase609)); string _phrase610; diff --git a/ServerTools/src/HowTo/HowToSetup.cs b/ServerTools/src/HowTo/HowToSetup.cs new file mode 100644 index 00000000..5959cc77 --- /dev/null +++ b/ServerTools/src/HowTo/HowToSetup.cs @@ -0,0 +1,60 @@ +using System.IO; + +namespace ServerTools +{ + class HowToSetup + { + private const string file = "HowToSetup.xml"; + private static string filePath = string.Format("{0}/{1}", API.ConfigPath, file); + private const double version = 6.2; + + public static void HowToSeup() + { + using (StreamWriter sw = new StreamWriter(filePath)) + { + sw.WriteLine(""); + sw.WriteLine("ServerTools - How to setup ServerTools"); + sw.WriteLine(string.Format("Version = \"{0}\"/>", version)); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine("ServerTools was coded and tested under a Windows operating system. It should operate on other major O.S. but if you find bugs, report them to"); + sw.WriteLine("https://github.com/dmustanger/7dtd-ServerTools/issues"); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine("ServerTools is compatible with 7 Days to Die version Alpha 16."); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine("Tool Name=AdminChatCommands Enable=False"); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.WriteLine(""); + sw.Flush(); + sw.Close(); + } + } + } +} diff --git a/ServerTools/src/PersistentData/Player.cs b/ServerTools/src/PersistentData/Player.cs index 249898c8..64e9dc50 100644 --- a/ServerTools/src/PersistentData/Player.cs +++ b/ServerTools/src/PersistentData/Player.cs @@ -12,8 +12,6 @@ public class Player [OptionalField] private string homeposition2; [OptionalField] - private DateTime lastsethome2; - [OptionalField] private DateTime respawnTime; [OptionalField] private DateTime lastTravel; @@ -76,18 +74,6 @@ public string HomePosition2 } } - public DateTime LastSetHome2 - { - get - { - return lastsethome2; - } - set - { - lastsethome2 = value; - } - } - public DateTime RespawnTime { get