internal static void AdminChat(Player player, Command cmd) { if (player.Info.IsMuted) { player.MessageMuted(); return; } if (DateTime.UtcNow < player.Info.MutedUntil) { player.Message("You are muted for another {0:0} seconds.", player.Info.MutedUntil.Subtract(DateTime.UtcNow).TotalSeconds); return; } string message = cmd.NextAll().Trim(); if (message.Length > 0) { if (player.Can(Permission.UseColorCodes) && message.Contains("%")) { message = Color.ReplacePercentCodes(message); } Chat.SendAdmin(player, message); } }