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

Commit

Permalink
Made vanish abusable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexr03 committed Nov 4, 2016
1 parent e8433f4 commit b095488
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
17 changes: 13 additions & 4 deletions IsAbusing.cs
Expand Up @@ -59,7 +59,6 @@ public override TranslationList DefaultTranslations
};
}
}

private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb, CSteamID murderer)
{
murderer3 = UnturnedPlayer.FromCSteamID(murderer);
Expand All @@ -70,11 +69,21 @@ private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
{
if (murderer3.GodMode == true)
{
UnturnedChat.Say(System.DateTime.Now + player.CharacterName + " Died by a player in godmode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));
UnturnedChat.Say(player.CharacterName + " died by a player in godmode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));

using (StreamWriter w = File.AppendText(directory + "/Admin-Abuse.txt"))
{
w.WriteLine(player.CharacterName + " died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
w.Close();
}
}
else if (murderer3.VanishMode == true)
{
UnturnedChat.Say(player.CharacterName + " died by a player in vanish mode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));

using (StreamWriter w = File.AppendText(directory + "/Admin-Abuse.txt"))
{
w.WriteLine(player.CharacterName + " Died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
w.WriteLine(player.CharacterName + " died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
w.Close();
}
}
Expand All @@ -90,7 +99,7 @@ private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
Rocket.Core.Logging.Logger.LogException(e);
}
}
}
}
else
{
Rocket.Core.Logging.Logger.Log("Chat is disabled to show messages.");
Expand Down
Binary file modified bin/Release/IsAbusing.dll
Binary file not shown.
Binary file modified bin/Release/IsAbusing.pdb
Binary file not shown.
Binary file modified obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
6 changes: 0 additions & 6 deletions obj/Release/IsAbusing.csproj.FileListAbsolute.txt
@@ -1,11 +1,5 @@
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\IsAbusing.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\IsAbusing.pdb
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Assembly-CSharp-firstpass.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Assembly-CSharp.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.API.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.Core.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.Unturned.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\UnityEngine.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.JsonFx.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.Ionic.Zip.Reduced.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.ClipperLib.dll
Expand Down
Binary file modified obj/Release/IsAbusing.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified obj/Release/IsAbusing.dll
Binary file not shown.
Binary file modified obj/Release/IsAbusing.pdb
Binary file not shown.

0 comments on commit b095488

Please sign in to comment.