diff --git a/CallVote.csproj b/CallVote.csproj index 4657268..73e001f 100644 --- a/CallVote.csproj +++ b/CallVote.csproj @@ -1,4 +1,4 @@ - + Debug @@ -28,28 +28,34 @@ false - - ..\Rocket API\Assembly-CSharp.dll + lib\Assembly-CSharp.dll + False - ..\Rocket API\Assembly-CSharp-firstpass.dll + lib\Assembly-CSharp-firstpass.dll + False - ..\Rocket API\Rocket.API.dll + lib\Rocket.API.dll + False - ..\Rocket API\Rocket.Core.dll + lib\Rocket.Core.dll + False - ..\Rocket API\Rocket.Unturned.dll - - - ..\Rocket API\UnityEngine.dll + lib\Rocket.Unturned.dll + False + + + lib\UnityEngine.dll + False + @@ -59,6 +65,6 @@ - + \ No newline at end of file diff --git a/CallVote.sln b/CallVote.sln new file mode 100644 index 0000000..5f7b870 --- /dev/null +++ b/CallVote.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CallVote", "CallVote.csproj", "{3443FB15-6C32-4605-AF5E-0A1D21418F4B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3443FB15-6C32-4605-AF5E-0A1D21418F4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3443FB15-6C32-4605-AF5E-0A1D21418F4B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3443FB15-6C32-4605-AF5E-0A1D21418F4B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3443FB15-6C32-4605-AF5E-0A1D21418F4B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/CallVote.v12.suo b/CallVote.v12.suo new file mode 100644 index 0000000..0d279e1 Binary files /dev/null and b/CallVote.v12.suo differ diff --git a/Commands/CVote.cs b/Commands/CVote.cs index b74b4d6..83ab8a4 100644 --- a/Commands/CVote.cs +++ b/Commands/CVote.cs @@ -109,6 +109,10 @@ public string Help { get { return "Enter vote node to start a vote. Enter yes or no to vote."; } } + public AllowedCaller AllowedCaller + { + get { return AllowedCaller.Both; } + } public List Permissions { get diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4c22ff4 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CallVote")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CallVote")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0ee3bbe9-50b7-4408-8a98-33e9ac251dc9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Utility.cs b/Utility.cs index fb28011..b83317d 100644 --- a/Utility.cs +++ b/Utility.cs @@ -15,6 +15,7 @@ using Rocket.Unturned.Player; using SDG.Unturned; using UnityEngine; +using Rocket.Core.Steam; namespace CallVote { @@ -34,7 +35,7 @@ public static void initiateDayVote() if(percentFor >= CallVote.Plugin.Instance.Configuration.Instance.successfulDayVotePercent) { Rocket.Unturned.Chat.UnturnedChat.Say ("The vote to make it daytime was successful.", Color.green); - Steam.ConsoleInput.onInputText("day"); + CommandWindow.ConsoleInput.onInputText("day"); } else if (percentFor < CallVote.Plugin.Instance.Configuration.Instance.successfulDayVotePercent) { diff --git a/bin/Debug/CallVote.dll b/bin/Debug/CallVote.dll new file mode 100644 index 0000000..d565204 Binary files /dev/null and b/bin/Debug/CallVote.dll differ diff --git a/bin/Debug/CallVote.pdb b/bin/Debug/CallVote.pdb new file mode 100644 index 0000000..83b8fc1 Binary files /dev/null and b/bin/Debug/CallVote.pdb differ diff --git a/lib/Assembly-CSharp-firstpass.dll b/lib/Assembly-CSharp-firstpass.dll new file mode 100644 index 0000000..f724b76 Binary files /dev/null and b/lib/Assembly-CSharp-firstpass.dll differ diff --git a/lib/Assembly-CSharp.dll b/lib/Assembly-CSharp.dll new file mode 100644 index 0000000..00ce1fe Binary files /dev/null and b/lib/Assembly-CSharp.dll differ diff --git a/lib/Rocket.API.dll b/lib/Rocket.API.dll new file mode 100644 index 0000000..3463b6f Binary files /dev/null and b/lib/Rocket.API.dll differ diff --git a/lib/Rocket.Core.dll b/lib/Rocket.Core.dll new file mode 100644 index 0000000..ff12c71 Binary files /dev/null and b/lib/Rocket.Core.dll differ diff --git a/lib/Rocket.Unturned.dll b/lib/Rocket.Unturned.dll new file mode 100644 index 0000000..1f3c114 Binary files /dev/null and b/lib/Rocket.Unturned.dll differ diff --git a/lib/UnityEngine.dll b/lib/UnityEngine.dll new file mode 100644 index 0000000..9079db1 Binary files /dev/null and b/lib/UnityEngine.dll differ diff --git a/obj/Debug/CallVote.csproj.FileListAbsolute.txt b/obj/Debug/CallVote.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..2fc1516 --- /dev/null +++ b/obj/Debug/CallVote.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +D:\Files from Old Windows Installs\laptop files\documents\GitHub\CallVote\obj\Debug\CallVote.csprojResolveAssemblyReference.cache +D:\Files from Old Windows Installs\laptop files\documents\GitHub\CallVote\bin\Debug\CallVote.dll +D:\Files from Old Windows Installs\laptop files\documents\GitHub\CallVote\bin\Debug\CallVote.pdb +D:\Files from Old Windows Installs\laptop files\documents\GitHub\CallVote\obj\Debug\CallVote.dll +D:\Files from Old Windows Installs\laptop files\documents\GitHub\CallVote\obj\Debug\CallVote.pdb diff --git a/obj/Debug/CallVote.csprojResolveAssemblyReference.cache b/obj/Debug/CallVote.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..9964620 Binary files /dev/null and b/obj/Debug/CallVote.csprojResolveAssemblyReference.cache differ diff --git a/obj/Debug/CallVote.dll b/obj/Debug/CallVote.dll new file mode 100644 index 0000000..d565204 Binary files /dev/null and b/obj/Debug/CallVote.dll differ diff --git a/obj/Debug/CallVote.pdb b/obj/Debug/CallVote.pdb new file mode 100644 index 0000000..83b8fc1 Binary files /dev/null and b/obj/Debug/CallVote.pdb differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c44a5f5 Binary files /dev/null and b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29