Skip to content

Commit

Permalink
Forgot to remove logs in command class
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-ZeroTwo committed Nov 16, 2021
1 parent 459e27d commit 3e033e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions BetterMute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\Downloads\Dev\Assembly-CSharp-firstpass.dll</HintPath>
<HintPath>..\..\..\..\Downloads\Dev\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-Publicized">
<HintPath>..\..\..\Downloads\Dev\Assembly-CSharp-Publicized.dll</HintPath>
<HintPath>..\..\..\..\Downloads\Dev\Assembly-CSharp-Publicized.dll</HintPath>
</Reference>
<Reference Include="CommandSystem.Core">
<HintPath>..\..\..\Downloads\Dev\CommandSystem.Core.dll</HintPath>
<HintPath>..\..\..\..\Downloads\Dev\CommandSystem.Core.dll</HintPath>
</Reference>
<Reference Include="Exiled.API, Version=3.7.1.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.3.7.1\lib\net472\Exiled.API.dll</HintPath>
Expand Down Expand Up @@ -77,7 +77,7 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\Downloads\Dev\UnityEngine.CoreModule.dll</HintPath>
<HintPath>..\..\..\..\Downloads\Dev\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 0 additions & 4 deletions Commands/MuteCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ public class MuteCommand : ICommand

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Log.Info(1);
if (Int32.TryParse(arguments.At(0), out int result))
{
Log.Info(2);
Player player = Player.Get(result);
Log.Info(3);
player.IsMuted = true;
player.IsIntercomMuted = true;
string userid = player.UserId;
Expand All @@ -28,7 +25,6 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
{
duration = result2;
}
Log.Info(4);
AddingMuteStatus(userid, duration);
response = $"{player.Nickname} will be muted for {duration} rounds";
}
Expand Down
2 changes: 1 addition & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Plugin : Plugin<Config>
public override string Author { get; } = "Killla";
public override string Name { get; } = "Better Mute";
public override string Prefix { get; } = "BetterMute";
public override Version Version { get; } = new Version(1, 0, 1);
public override Version Version { get; } = new Version(1, 0, 2);
public override Version RequiredExiledVersion { get; } = new Version(3, 0, 0);

public ServerHandlers ServerHandlers;
Expand Down

0 comments on commit 3e033e0

Please sign in to comment.