Permalink
Browse files

ic3

  • Loading branch information...
ic3w0lf22 committed Jan 21, 2017
1 parent 451915a commit 46b88ebebe7af842c6ded5a5403be1aff10a6819
Showing with 2 additions and 0 deletions.
  1. +2 −0 SpawnProtection.cs
  2. BIN bin/Debug/ArenaSpawnProtection.dll
@@ -76,6 +76,7 @@ public IEnumerator ProtectPlayers()
SteamPlayer sPlayer = Provider.clients[i];
UnturnedPlayer uPlayer = (UnturnedPlayer)UnturnedPlayer.FromCSteamID(sPlayer.playerID.steamID);
uPlayer.Features.VanishMode = true;
uPlayer.Features.GodMode = true;
Rocket.Core.Logging.Logger.Log("Protected " + uPlayer.DisplayName, ConsoleColor.Cyan);
}
ChatManager.say(base.Configuration.Instance.ProtectionStartMessage, base.Configuration.Instance.MessageColor);
@@ -85,6 +86,7 @@ public IEnumerator ProtectPlayers()
SteamPlayer sPlayer = Provider.clients[i];
UnturnedPlayer uPlayer = (UnturnedPlayer)UnturnedPlayer.FromCSteamID(sPlayer.playerID.steamID);
uPlayer.Features.VanishMode = false;
uPlayer.Features.GodMode = false;
Rocket.Core.Logging.Logger.Log("Ended protection for " + uPlayer.DisplayName, ConsoleColor.Cyan);
}
ChatManager.say(base.Configuration.Instance.ProtectionEndMessage, base.Configuration.Instance.MessageColor);
BIN +512 Bytes (110%) bin/Debug/ArenaSpawnProtection.dll
Binary file not shown.

0 comments on commit 46b88eb

Please sign in to comment.