Skip to content

Commit

Permalink
Fixed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
AtiLion committed Jun 14, 2017
1 parent 64b7b7b commit ba68526
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DiscordHook/DiscordHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ private void OnPlayerChat(SteamPlayer player, EChatMode mode, ref Color color, s

private void OnExecuteCommand(IRocketPlayer player, IRocketCommand command, ref bool cancel)
{
if (player == null)
return;
if(!(player is UnturnedPlayer))
return;

UnturnedPlayer ply = (UnturnedPlayer)player;

if(command is CommandTp)
Expand Down

0 comments on commit ba68526

Please sign in to comment.