Skip to content

Commit b095488

Browse files
committed
Made vanish abusable
1 parent e8433f4 commit b095488

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

IsAbusing.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public override TranslationList DefaultTranslations
5959
};
6060
}
6161
}
62-
6362
private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb, CSteamID murderer)
6463
{
6564
murderer3 = UnturnedPlayer.FromCSteamID(murderer);
@@ -70,11 +69,21 @@ private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
7069
{
7170
if (murderer3.GodMode == true)
7271
{
73-
UnturnedChat.Say(System.DateTime.Now + player.CharacterName + " Died by a player in godmode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));
72+
UnturnedChat.Say(player.CharacterName + " died by a player in godmode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));
73+
74+
using (StreamWriter w = File.AppendText(directory + "/Admin-Abuse.txt"))
75+
{
76+
w.WriteLine(player.CharacterName + " died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
77+
w.Close();
78+
}
79+
}
80+
else if (murderer3.VanishMode == true)
81+
{
82+
UnturnedChat.Say(player.CharacterName + " died by a player in vanish mode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));
7483

7584
using (StreamWriter w = File.AppendText(directory + "/Admin-Abuse.txt"))
7685
{
77-
w.WriteLine(player.CharacterName + " Died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
86+
w.WriteLine(player.CharacterName + " died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
7887
w.Close();
7988
}
8089
}
@@ -90,7 +99,7 @@ private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
9099
Rocket.Core.Logging.Logger.LogException(e);
91100
}
92101
}
93-
}
102+
}
94103
else
95104
{
96105
Rocket.Core.Logging.Logger.Log("Chat is disabled to show messages.");

bin/Release/IsAbusing.dll

512 Bytes
Binary file not shown.

bin/Release/IsAbusing.pdb

0 Bytes
Binary file not shown.
48 Bytes
Binary file not shown.

obj/Release/IsAbusing.csproj.FileListAbsolute.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\IsAbusing.dll
22
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\IsAbusing.pdb
3-
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Assembly-CSharp-firstpass.dll
4-
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Assembly-CSharp.dll
5-
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.API.dll
6-
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.Core.dll
7-
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.Unturned.dll
8-
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\UnityEngine.dll
93
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.JsonFx.dll
104
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.Ionic.Zip.Reduced.dll
115
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.ClipperLib.dll
25.1 KB
Binary file not shown.

obj/Release/IsAbusing.dll

512 Bytes
Binary file not shown.

obj/Release/IsAbusing.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)