Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Upload
Browse files Browse the repository at this point in the history
Upload
  • Loading branch information
Alexr03 committed Aug 16, 2016
1 parent 23c9a74 commit 23ea7c5
Show file tree
Hide file tree
Showing 28 changed files with 40,461 additions and 0 deletions.
68 changes: 68 additions & 0 deletions CommandIsGod.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
using Rocket.API;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Player;
using SDG.Provider;
using SDG.Unturned;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace IsAbusing
{
class CommandIsGod : IRocketCommand
{
public static UnturnedPlayer player2;

public string Help
{
get { return "See's if the user is in godmode."; }
}

public string Name
{
get { return "isgod"; }
}

public string Syntax
{
get { return "/isgod <player>"; }
}

public List<string> Aliases
{
get { return new List<string>(); }
}

public AllowedCaller AllowedCaller
{
get { return AllowedCaller.Both; }
}

public List<string> Permissions
{
get
{
return new List<string>() { "abuse.isgod" };
}
}

public void Execute(IRocketPlayer caller, string[] command)
{
if (command.Length == 1)
{
player2 = UnturnedPlayer.FromName(command[0]);
if (player2.GodMode == true)
{
UnturnedChat.Say(player2.CharacterName + "Has godmode enabled");
}
else
{
UnturnedChat.Say(player2.CharacterName + "Has godmode disabled");
}
}
}
}
}
69 changes: 69 additions & 0 deletions CommandIsVanish.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
using Rocket.API;
using Rocket.Unturned.Chat;
using Rocket.Unturned.Player;
using SDG.Provider;
using SDG.Unturned;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace IsAbusing
{
class CommandIsVanish : IRocketCommand
{
public static UnturnedPlayer player2;

public string Help
{
get { return "See's if the user is in vanish."; }
}

public string Name
{
get { return "isvanish"; }
}

public string Syntax
{
get { return "/isvanish <player>"; }
}

public List<string> Aliases
{
get { return new List<string>(); }
}

public AllowedCaller AllowedCaller
{
get { return AllowedCaller.Both; }
}

public List<string> Permissions
{
get
{
return new List<string>() { "abuse.isvanish" };
}
}

public void Execute(IRocketPlayer caller, string[] command)
{
if (command.Length == 1)
{
player2 = UnturnedPlayer.FromName(command[0]);
if (player2.VanishMode == true)
{
UnturnedChat.Say(player2.CharacterName + "Has vanish enabled");
}
else
{
UnturnedChat.Say(player2.CharacterName + "Has vanish disabled");
}
}

}
}
}
62 changes: 62 additions & 0 deletions IsAbusing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using Rocket.Core.Plugins;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rocket.API.Collections;
using Rocket.Unturned;
using Rocket.Unturned.Player;
using UnityEngine;
using SDG.Unturned;
using Steamworks;
using Rocket.Unturned.Chat;

namespace IsAbusing
{
public class IsAbusing : RocketPlugin<IsAbusingConfiguration>
{
public static IsAbusing Instance;

public static UnturnedPlayer murderer3;

protected override void Load()
{
Instance = this;
Rocket.Unturned.Events.UnturnedPlayerEvents.OnPlayerDeath += onplayerdeath;
}

protected override void Unload()
{
Rocket.Unturned.Events.UnturnedPlayerEvents.OnPlayerDeath -= onplayerdeath;
}

private void FixedUpdate()
{

}

public override TranslationList DefaultTranslations
{
get
{
return new TranslationList() {
};
}
}

private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb, CSteamID murderer)
{
murderer3 = UnturnedPlayer.FromCSteamID(murderer);

if (murderer3.GodMode == true)
{
UnturnedChat.Say(player.CharacterName + "Died by a player in godmode ABUSER: " + murderer3.CharacterName);
}
else
{
UnturnedChat.Say(player.CharacterName + " Died by a player not in godmode");
}
}
}
}
75 changes: 75 additions & 0 deletions IsAbusing.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{013C9570-3B73-4D69-BF8D-39EE33ADC4D5}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IsAbusing</RootNamespace>
<AssemblyName>IsAbusing</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>D:\Keybase\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Unturned\Unturned_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="Rocket.API">
<HintPath>D:\Keybase\Rocket.API.dll</HintPath>
</Reference>
<Reference Include="Rocket.Core">
<HintPath>D:\Keybase\Rocket.Core.dll</HintPath>
</Reference>
<Reference Include="Rocket.Unturned">
<HintPath>D:\Keybase\Rocket.Unturned.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Unturned\Unturned_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CommandIsGod.cs" />
<Compile Include="CommandIsVanish.cs" />
<Compile Include="IsAbusing.cs" />
<Compile Include="IsAbusingConfiguration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
19 changes: 19 additions & 0 deletions IsAbusingConfiguration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Rocket.API;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IsAbusing
{
public class IsAbusingConfiguration : IRocketPluginConfiguration
{
public bool debug;

public void LoadDefaults()
{
debug = true;
}
}
}
36 changes: 36 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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("IsAbusing")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("IsAbusing")]
[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("013c9570-3b73-4d69-bf8d-39ee33adc4d5")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file added bin/Debug/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file added bin/Debug/Assembly-CSharp.dll
Binary file not shown.
Binary file added bin/Debug/IsAbusing.dll
Binary file not shown.
Binary file added bin/Debug/IsAbusing.pdb
Binary file not shown.
Binary file added bin/Debug/Pathfinding.ClipperLib.dll
Binary file not shown.
Binary file added bin/Debug/Pathfinding.Ionic.Zip.Reduced.dll
Binary file not shown.
Binary file added bin/Debug/Pathfinding.JsonFx.dll
Binary file not shown.
Binary file added bin/Debug/Pathfinding.Poly2Tri.dll
Binary file not shown.
Binary file added bin/Debug/Rocket.API.dll
Binary file not shown.
Binary file added bin/Debug/Rocket.Core.dll
Binary file not shown.
Binary file added bin/Debug/Rocket.Unturned.dll
Binary file not shown.
Binary file added bin/Debug/UnityEngine.CrashLog.dll
Binary file not shown.
Binary file added bin/Debug/UnityEngine.dll
Binary file not shown.
Loading

0 comments on commit 23ea7c5

Please sign in to comment.