Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
EmblyOne committed Sep 24, 2021
1 parent 8b1273c commit 80d7a48
Show file tree
Hide file tree
Showing 101 changed files with 73 additions and 193 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31205.134
VisualStudioVersion = 16.0.31702.278
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UltimateCuffing", "UltimateCuffing\UltimateCuffing.csproj", "{1ACEF69F-AC33-4D13-A97B-F3B40B9ED781}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UltimateCuffing 2.0", "UltimateCuffing 2.0\UltimateCuffing 2.0.csproj", "{10F66671-3968-4C49-8445-84181680D068}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1ACEF69F-AC33-4D13-A97B-F3B40B9ED781}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1ACEF69F-AC33-4D13-A97B-F3B40B9ED781}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1ACEF69F-AC33-4D13-A97B-F3B40B9ED781}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1ACEF69F-AC33-4D13-A97B-F3B40B9ED781}.Release|Any CPU.Build.0 = Release|Any CPU
{10F66671-3968-4C49-8445-84181680D068}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{10F66671-3968-4C49-8445-84181680D068}.Debug|Any CPU.Build.0 = Debug|Any CPU
{10F66671-3968-4C49-8445-84181680D068}.Release|Any CPU.ActiveCfg = Release|Any CPU
{10F66671-3968-4C49-8445-84181680D068}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E7D64EDB-790B-4EE1-9124-CAB67948DFAA}
SolutionGuid = {C9B709D3-B548-4EA7-90BD-EB9C65CB7E02}
EndGlobalSection
EndGlobal
13 changes: 13 additions & 0 deletions UltimateCuffing 2.0/UltimateCuffing 2.0/Config.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using Exiled.API.Interfaces;

namespace UltimateCuffing_2._0
{
public class Config : IConfig
{
public bool IsEnabled { get; set; } = true;

public List<Team> cuffedteams { get; } = new List<Team> { Team.CDP, Team.TUT, Team.SCP, Team.MTF, Team.CHI };
}
}
18 changes: 18 additions & 0 deletions UltimateCuffing 2.0/UltimateCuffing 2.0/EventHandlers.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using Exiled.Events.EventArgs;

namespace UltimateCuffing_2._0
{
public class EventHandlers
{
public Plugin plugin;
public EventHandlers(Plugin plugin) => this.plugin = plugin;
public void OnCuffed(HandcuffingEventArgs ev)
{
if (plugin.Config.cuffedteams == null)
return;
if (ev.Cuffer.Team == ev.Target.Team && plugin.Config.cuffedteams.Contains(ev.Target.Team))
ev.IsAllowed = true;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
using System;
using System.Collections.Generic;
using Exiled.API.Features;
using Player = Exiled.Events.Handlers.Player;
using Exiled.API.Features;

namespace UltimateCuffing
namespace UltimateCuffing_2._0
{

public class Plugin : Plugin<Config>
{
public override string Author { get; } = "Space";
public override string Author { get; } = "G-Man";
public override string Name { get; } = "UltimateCuffing";
public override string Prefix { get; } = "UltimateCuffing";
public override Version Version { get; } = new Version(1, 0, 0);
public override Version RequiredExiledVersion { get; } = new Version(2, 10, 0);

public EventHandlers EventHandler;
public override Version Version { get; } = new Version(2, 0, 0);
public override Version RequiredExiledVersion { get; } = new Version(3, 0, 0);
public EventHandlers EventHandler;

public override void OnEnabled()
{
{
EventHandler = new EventHandlers(this);
Player.Handcuffing += EventHandler.OnCuff;

Player.Handcuffing += EventHandler.OnCuffed;
base.OnEnabled();
}
public override void OnDisabled()
{
Player.Handcuffing -= EventHandler.OnCuff;

Player.Handcuffing -= EventHandler.OnCuffed;
EventHandler = null;
base.OnDisabled();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// Общие сведения об этой сборке предоставляются следующим набором
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
// связанные со сборкой.
[assembly: AssemblyTitle("UltimateCuffing")]
[assembly: AssemblyTitle("UltimateCuffing 2.0")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UltimateCuffing")]
[assembly: AssemblyProduct("UltimateCuffing 2.0")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -20,7 +20,7 @@
[assembly: ComVisible(false)]

// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("1acef69f-ac33-4d13-a97b-f3b40b9ed781")]
[assembly: Guid("10f66671-3968-4c49-8445-84181680d068")]

// Сведения о версии сборки состоят из указанных ниже четырех значений:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1ACEF69F-AC33-4D13-A97B-F3B40B9ED781}</ProjectGuid>
<ProjectGuid>{10F66671-3968-4C49-8445-84181680D068}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>UltimateCuffing</RootNamespace>
<AssemblyName>UltimateCuffing</AssemblyName>
<RootNamespace>UltimateCuffing_2._0</RootNamespace>
<AssemblyName>UltimateCuffing 2.0</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
Expand All @@ -32,34 +32,37 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\..\..\..\Downloads\EXILED\Plugins\dependencies\0Harmony.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\Desktop\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\..\Desktop\exileddeveloping\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="Exiled.API">
<HintPath>..\..\..\..\Downloads\EXILED\Plugins\dependencies\Exiled.API.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Exiled.API.dll</HintPath>
</Reference>
<Reference Include="Exiled.CreditTags">
<HintPath>..\..\..\..\Downloads\EXILED\Plugins\Exiled.CreditTags.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Exiled.CreditTags.dll</HintPath>
</Reference>
<Reference Include="Exiled.CustomItems">
<HintPath>..\..\..\..\Documents\Exiled.CustomItems.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Exiled.CustomItems.dll</HintPath>
</Reference>
<Reference Include="Exiled.Events">
<HintPath>..\..\..\..\Documents\Exiled.Events.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Exiled.Events.dll</HintPath>
</Reference>
<Reference Include="Exiled.Permissions">
<HintPath>..\..\..\..\Documents\Exiled.Permissions.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Exiled.Permissions.dll</HintPath>
</Reference>
<Reference Include="Exiled.Updater">
<HintPath>..\..\..\..\Documents\Exiled.Updater.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Exiled.Updater.dll</HintPath>
</Reference>
<Reference Include="Mirror">
<HintPath>..\..\..\..\Desktop\diamondproject\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Mirror.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\Mirror.dll</HintPath>
</Reference>
<Reference Include="NorthwoodLib">
<HintPath>..\..\..\..\Desktop\ttt\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\NorthwoodLib.dll</HintPath>
<Reference Include="SemVer">
<HintPath>..\..\..\..\Desktop\exileddeveloping\SemVer.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -70,10 +73,13 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\Desktop\ttt\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\Desktop\exileddeveloping\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="YamlDotNet">
<HintPath>..\..\..\..\Downloads\EXILED\Plugins\dependencies\YamlDotNet.dll</HintPath>
<HintPath>..\..\..\..\Desktop\exileddeveloping\YamlDotNet.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
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.
Binary file not shown.
Binary file removed UltimateCuffing-Exiled/.vs/UltimateCuffing/v16/.suo
Binary file not shown.
28 changes: 0 additions & 28 deletions UltimateCuffing-Exiled/UltimateCuffing/Config.cs

This file was deleted.

49 changes: 0 additions & 49 deletions UltimateCuffing-Exiled/UltimateCuffing/EventHandlers.cs

This file was deleted.

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.
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.
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.
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.
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.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 80d7a48

Please sign in to comment.