This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload
- Loading branch information
Showing
28 changed files
with
40,461 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.