Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions CallVote.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -28,28 +28,34 @@
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Assembly-CSharp">
<HintPath>..\Rocket API\Assembly-CSharp.dll</HintPath>
<HintPath>lib\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\Rocket API\Assembly-CSharp-firstpass.dll</HintPath>
<HintPath>lib\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.API">
<HintPath>..\Rocket API\Rocket.API.dll</HintPath>
<HintPath>lib\Rocket.API.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.Core">
<HintPath>..\Rocket API\Rocket.Core.dll</HintPath>
<HintPath>lib\Rocket.Core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.Unturned">
<HintPath>..\Rocket API\Rocket.Unturned.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\Rocket API\UnityEngine.dll</HintPath>
<HintPath>lib\Rocket.Unturned.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Data" />
<Reference Include="UnityEngine">
<HintPath>lib\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
Expand All @@ -59,6 +65,6 @@
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Folder Include="Commands\" />
<Folder Include="lib\" />
</ItemGroup>
</Project>
22 changes: 22 additions & 0 deletions CallVote.sln
Original file line number Diff line number Diff line change
@@ -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
Binary file added CallVote.v12.suo
Binary file not shown.
4 changes: 4 additions & 0 deletions Commands/CVote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> Permissions
{
get
Expand Down
33 changes: 33 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
3 changes: 2 additions & 1 deletion Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Rocket.Unturned.Player;
using SDG.Unturned;
using UnityEngine;
using Rocket.Core.Steam;

namespace CallVote
{
Expand All @@ -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)
{
Expand Down
Binary file added bin/Debug/CallVote.dll
Binary file not shown.
Binary file added bin/Debug/CallVote.pdb
Binary file not shown.
Binary file added lib/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file added lib/Assembly-CSharp.dll
Binary file not shown.
Binary file added lib/Rocket.API.dll
Binary file not shown.
Binary file added lib/Rocket.Core.dll
Binary file not shown.
Binary file added lib/Rocket.Unturned.dll
Binary file not shown.
Binary file added lib/UnityEngine.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions obj/Debug/CallVote.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
Binary file added obj/Debug/CallVote.dll
Binary file not shown.
Binary file added obj/Debug/CallVote.pdb
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.