Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Aug 8, 2022
2 parents 627923d + c0a0327 commit 2d3dceb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions freeroam-extended/server/freeroam-extended/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ public void Teleport(IAltPlayer player, int id = 0)
player.Emit("set_last_command");
}

[Command("pos")]
public void Position(IAltPlayer player)
{
Alt.Log($"new Position({player.Position.X}, {player.Position.Y}, {player.Position.Z}),");
}

[Command("ban")]
public void Ban(IAltPlayer player, int id)
{
Expand Down Expand Up @@ -428,11 +422,18 @@ public void NoClip(IAltPlayer player)
public void Respawn(IAltPlayer player)
{
player.Spawn(player.Position);
player.ClearBloodDamage();
}

[Command("announce")]
public void Announce(IAltPlayer player, string header, int time, params string[] body)
{
if (!player.IsAdmin)
{
player.SendChatMessage("{FF0000} No permission!");
return;
}

var message = string.Join(" ", body);
Alt.EmitAllClients("announce", header, message, time);
}
Expand Down

0 comments on commit 2d3dceb

Please sign in to comment.